Class PreferencesDialog.Builder<B extends PreferencesDialog.Builder<B>>

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

public static class PreferencesDialog.Builder<B extends PreferencesDialog.Builder<B>> extends Dialog.Builder<B> implements Accessible.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
1.5
  • Constructor Details

    • Builder

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

    • build

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

      public B setSearchEnabled(boolean searchEnabled)
      Whether search is enabled.
      Parameters:
      searchEnabled - the value for the search-enabled property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.5
    • setVisiblePage

      public B setVisiblePage(Widget visiblePage)
      The currently visible page.
      Parameters:
      visiblePage - the value for the visible-page property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.5
    • setVisiblePageName

      public B setVisiblePageName(String visiblePageName)

      The name of the currently visible page.

      See AdwPreferencesDialog:visible-page.

      Parameters:
      visiblePageName - the value for the visible-page-name property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.5