Class PreferencesPage.Builder<B extends PreferencesPage.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
Accessible.Builder<B>, BuilderInterface
Enclosing class:
PreferencesPage

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

      public B setBanner(Banner banner)
      A Banner displayed at the top of the page.
      Parameters:
      banner - the value for the banner property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.7
    • setDescription

      public B setDescription(String description)
      The description to be displayed at the top of the page.
      Parameters:
      description - the value for the description property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.4
    • setDescriptionCentered

      public B setDescriptionCentered(boolean descriptionCentered)
      Whether the description should be centered.
      Parameters:
      descriptionCentered - the value for the description-centered property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.6
    • setIconName

      public B setIconName(String iconName)
      The icon name for this page.
      Parameters:
      iconName - the value for the icon-name property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setName

      public B setName(String name)
      The name of this page.
      Overrides:
      setName in class Widget.Builder<B extends PreferencesPage.Builder<B>>
      Parameters:
      name - the value for the name property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTitle

      public B setTitle(String title)
      The title for this page.
      Parameters:
      title - the value for the title property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setUseUnderline

      public B setUseUnderline(boolean useUnderline)
      Whether an embedded underline in the title indicates a mnemonic.
      Parameters:
      useUnderline - the value for the use-underline property
      Returns:
      the Builder instance is returned, to allow method chaining