Class PreferencesWindow.Builder<B extends PreferencesWindow.Builder<B>>

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

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

      @Deprecated public B setCanNavigateBack(boolean canNavigateBack)
      Deprecated.
      Use NavigationPage:can-pop instead.

      Whether gestures and shortcuts for closing subpages are enabled.

      The supported gestures are:

      • One-finger swipe on touchscreens
      • Horizontal scrolling on touchpads (usually two-finger swipe)
      • Back mouse button

      The keyboard back key is also supported, as well as the Alt+ shortcut.

      For right-to-left locales, gestures and shortcuts are reversed.

      Has no effect for subpages added with PreferencesWindow.pushSubpage(NavigationPage).

      Parameters:
      canNavigateBack - the value for the can-navigate-back property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setSearchEnabled

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

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

      @Deprecated public B setVisiblePageName(String visiblePageName)
      Deprecated.

      The name of the currently visible page.

      See PreferencesWindow:visible-page.

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