Class IconPaintable.Builder<B extends IconPaintable.Builder<B>>

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

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

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

      @Deprecated public B setIconName(String iconName)
      Deprecated.
      The icon name that was chosen during lookup.
      Parameters:
      iconName - the value for the icon-name property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setIsSymbolic

      @Deprecated public B setIsSymbolic(boolean isSymbolic)
      Deprecated.
      Whether the icon is symbolic or not.
      Parameters:
      isSymbolic - the value for the is-symbolic property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setScale

      public B setScale(int scale)
    • setSize

      public B setSize(int size)