Package org.gnome.gtk
Class ListItem.Builder<B extends ListItem.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.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
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theListItemobject.setAccessibleDescription(String accessibleDescription) The accessible description to set on the listitem.setAccessibleLabel(String accessibleLabel) The accessible label to set on the listitem.setActivatable(boolean activatable) If the item can be activated by the user.Widget used for display.setFocusable(boolean focusable) If the item can be focused with the keyboard.setSelectable(boolean selectable) If the item can be selected by the user.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theListItemobject. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])to create a new GObject instance, which is then cast toListItem.- Overrides:
buildin classGObject.Builder<B extends ListItem.Builder<B>>- Returns:
- a new instance of
ListItemwith the properties that were set in the Builder object.
-
setAccessibleDescription
-
setAccessibleLabel
-
setActivatable
If the item can be activated by the user.- Parameters:
activatable- the value for theactivatableproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setChild
-
setFocusable
If the item can be focused with the keyboard.- Parameters:
focusable- the value for thefocusableproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.12
-
setSelectable
If the item can be selected by the user.- Parameters:
selectable- the value for theselectableproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-