Class ButtonRow.Builder<B extends ButtonRow.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:
ButtonRow

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

    • Builder

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

    • build

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

      public B setEndIconName(String endIconName)
      The icon name to show after the title.
      Parameters:
      endIconName - the value for the end-icon-name property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.6
    • setStartIconName

      public B setStartIconName(String startIconName)
      The icon name to show before the title.
      Parameters:
      startIconName - the value for the start-icon-name property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.6
    • onActivated

      public B onActivated(ButtonRow.ActivatedCallback handler)
      This signal is emitted after the row has been activated.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.6
      See Also: