Class PreferencesRow.Builder<B extends PreferencesRow.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:
ActionRow.Builder, ButtonRow.Builder, EntryRow.Builder, ExpanderRow.Builder
Enclosing class:
PreferencesRow

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

      public B setTitle(String title)

      The title of the preference represented by this row.

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

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

      public B setTitleSelectable(boolean titleSelectable)

      Whether the user can copy the title from the label.

      See also Gtk.Label:selectable.

      Parameters:
      titleSelectable - the value for the title-selectable property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.1
    • setUseMarkup

      public B setUseMarkup(boolean useMarkup)

      Whether to use Pango markup for the title label.

      Subclasses may also use it for other labels, such as subtitle.

      See also Pango#parseMarkup.

      Parameters:
      useMarkup - the value for the use-markup property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.2
    • setUseUnderline

      public B setUseUnderline(boolean useUnderline)
      Whether an embedded underline in the title indicates a mnemonic.
      Parameters:
      useUnderline - the value for the use-underline property
      Returns:
      the Builder instance is returned, to allow method chaining