Class ActionRow.Builder<B extends ActionRow.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
Accessible.Builder<B>, Actionable.Builder<B>, BuilderInterface
Direct Known Subclasses:
ComboRow.Builder, SpinRow.Builder, SwitchRow.Builder
Enclosing class:
ActionRow

public static class ActionRow.Builder<B extends ActionRow.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.
  • Constructor Details

    • Builder

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

    • build

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

      public B setActivatableWidget(Widget activatableWidget)

      The widget to activate when the row is activated.

      The row can be activated either by clicking on it, calling ActionRow.activate(), or via mnemonics in the title. See the PreferencesRow:use-underline property to enable mnemonics.

      The target widget will be activated by emitting the Gtk.Widget::mnemonic-activate signal on it.

      Parameters:
      activatableWidget - the value for the activatable-widget property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setIconName

      @Deprecated public B setIconName(String iconName)
      Deprecated.
      Use ActionRow.addPrefix(Widget) to add an icon.
      The icon name for this row.
      Parameters:
      iconName - the value for the icon-name property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setSubtitle

      public B setSubtitle(String subtitle)

      The subtitle for this row.

      The subtitle is interpreted as Pango markup unless PreferencesRow:use-markup is set to FALSE.

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

      public B setSubtitleLines(int subtitleLines)

      The number of lines at the end of which the subtitle label will be ellipsized.

      If the value is 0, the number of lines won't be limited.

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

      public B setSubtitleSelectable(boolean subtitleSelectable)

      Whether the user can copy the subtitle from the label.

      See also Gtk.Label:selectable.

      Parameters:
      subtitleSelectable - the value for the subtitle-selectable property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.3
    • setTitleLines

      public B setTitleLines(int titleLines)

      The number of lines at the end of which the title label will be ellipsized.

      If the value is 0, the number of lines won't be limited.

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

      public B onActivated(ActionRow.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
      See Also: