Class ViewSwitcherBar.Builder<B extends ViewSwitcherBar.Builder<B>>

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

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

      public B setReveal(boolean reveal)
      Whether the bar should be revealed or hidden.
      Parameters:
      reveal - the value for the reveal property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setStack

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