Class TabButton.Builder<B extends TabButton.Builder<B>>

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

public static class TabButton.Builder<B extends TabButton.Builder<B>> extends Widget.Builder<B> implements Accessible.Builder<B>, Actionable.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
1.3
  • Constructor Details

    • Builder

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

    • build

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

      public B setView(TabView view)
      The view the tab button displays.
      Parameters:
      view - the value for the view property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.3
    • onActivate

      public B onActivate(TabButton.ActivateCallback handler)

      Emitted to animate press then release.

      This is an action signal. Applications should never connect to this signal, but use the TabButton::clicked signal.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.3
      See Also:
    • onClicked

      public B onClicked(TabButton.ClickedCallback handler)
      Emitted when the button has been activated (pressed and released).
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.3
      See Also: