Package org.gnome.gtk
Class ListItem.Builder<B extends ListItem.Builder<B>>
java.lang.Object
io.github.jwharm.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theListItem
object.setAccessibleDescription
(String accessibleDescription) The accessible description to set on the list item.setAccessibleLabel
(String accessibleLabel) The accessible label to set on the list item.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
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theListItem
object. 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:
build
in classGObject.Builder<B extends ListItem.Builder<B>>
- Returns:
- a new instance of
ListItem
with 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 theactivatable
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setChild
-
setFocusable
If the item can be focused with the keyboard.- Parameters:
focusable
- the value for thefocusable
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSelectable
If the item can be selected by the user.- Parameters:
selectable
- the value for theselectable
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-