Class FileIcon.Builder<B extends FileIcon.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
FileIcon

public static class FileIcon.Builder<B extends FileIcon.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public FileIcon build()
      Finish building the FileIcon object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to FileIcon.
      Overrides:
      build in class GObject.Builder<B extends FileIcon.Builder<B>>
      Returns:
      a new instance of FileIcon with the properties that were set in the Builder object.
    • setFile

      public B setFile(File file)
      The file containing the icon.
      Parameters:
      file - the value for the file property
      Returns:
      the Builder instance is returned, to allow method chaining