Class ListItem.Builder<B extends ListItem.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Direct Known Subclasses:
ColumnViewCell.Builder
Enclosing class:
ListItem

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

      public B setAccessibleDescription(String accessibleDescription)
      The accessible description to set on the listitem.
      Parameters:
      accessibleDescription - the value for the accessible-description property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.12
    • setAccessibleLabel

      public B setAccessibleLabel(String accessibleLabel)
      The accessible label to set on the listitem.
      Parameters:
      accessibleLabel - the value for the accessible-label property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.12
    • setActivatable

      public B setActivatable(boolean activatable)
      If the item can be activated by the user.
      Parameters:
      activatable - the value for the activatable property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setChild

      public B setChild(Widget child)
      Widget used for display.
      Parameters:
      child - the value for the child property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setFocusable

      public B setFocusable(boolean focusable)
      If the item can be focused with the keyboard.
      Parameters:
      focusable - the value for the focusable property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.12
    • setSelectable

      public B setSelectable(boolean selectable)
      If the item can be selected by the user.
      Parameters:
      selectable - the value for the selectable property
      Returns:
      the Builder instance is returned, to allow method chaining