Class ViewSwitcherTitle.Builder<B extends ViewSwitcherTitle.Builder<B>>

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

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

      @Deprecated public B setStack(ViewStack stack)
      Deprecated.
      The stack the view switcher controls.
      Parameters:
      stack - the value for the stack property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setSubtitle

      @Deprecated public B setSubtitle(String subtitle)
      Deprecated.

      The subtitle to display.

      The subtitle should give the user additional details.

      Parameters:
      subtitle - the value for the subtitle property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTitle

      @Deprecated public B setTitle(String title)
      Deprecated.

      The title to display.

      The title typically identifies the current view or content item, and generally does not use the application name.

      Parameters:
      title - the value for the title property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setViewSwitcherEnabled

      @Deprecated public B setViewSwitcherEnabled(boolean viewSwitcherEnabled)
      Deprecated.

      Whether the view switcher is enabled.

      If it is disabled, the title will be displayed instead. This allows to programmatically hide the view switcher even if it fits in the available space.

      This can be used e.g. to ensure the view switcher is hidden below a certain window width, or any other constraint you find suitable.

      Parameters:
      viewSwitcherEnabled - the value for the view-switcher-enabled property
      Returns:
      the Builder instance is returned, to allow method chaining