Class FlowBox.Builder<B extends FlowBox.Builder<B>>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,Accessible.Builder<B>
,Orientable.Builder<B>
- Enclosing class:
FlowBox
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theFlowBox
object.Emitted when the user activates thebox
.Emitted when a child has been activated by the user.onMoveCursor
(FlowBox.MoveCursorCallback handler) Emitted when the user initiates a cursor movement.onSelectAll
(FlowBox.SelectAllCallback handler) Emitted to select all children of the box, if the selection mode permits it.Emitted when the set of selected children changes.Emitted to toggle the selection of the child that has the focus.onUnselectAll
(FlowBox.UnselectAllCallback handler) Emitted to unselect all children of the box, if the selection mode permits it.setAcceptUnpairedRelease
(boolean acceptUnpairedRelease) Whether to accept unpaired release events.setActivateOnSingleClick
(boolean activateOnSingleClick) Determines whether children can be activated with a single click, or require a double-click.setColumnSpacing
(int columnSpacing) The amount of horizontal space between two children.setHomogeneous
(boolean homogeneous) Determines whether all children should be allocated the same size.setMaxChildrenPerLine
(int maxChildrenPerLine) The maximum amount of children to request space for consecutively in the given orientation.setMinChildrenPerLine
(int minChildrenPerLine) The minimum number of children to allocate consecutively in the given orientation.setRowSpacing
(int rowSpacing) The amount of vertical space between two children.setSelectionMode
(SelectionMode selectionMode) The selection mode used by the flow box.Methods inherited from class org.gnome.gtk.Widget.Builder
onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, setCanFocus, setCanTarget, setCssClasses, setCssName, setCursor, setFocusable, setFocusOnClick, setHalign, setHasTooltip, setHeightRequest, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequest
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRole
Methods inherited from interface io.github.jwharm.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
Methods inherited from interface org.gnome.gtk.Orientable.Builder
setOrientation
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theFlowBox
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 toFlowBox
.- Overrides:
build
in classWidget.Builder<B extends FlowBox.Builder<B>>
- Returns:
- a new instance of
FlowBox
with the properties that were set in the Builder object.
-
setAcceptUnpairedRelease
Whether to accept unpaired release events.- Parameters:
acceptUnpairedRelease
- the value for theaccept-unpaired-release
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setActivateOnSingleClick
Determines whether children can be activated with a single click, or require a double-click.- Parameters:
activateOnSingleClick
- the value for theactivate-on-single-click
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setColumnSpacing
The amount of horizontal space between two children.- Parameters:
columnSpacing
- the value for thecolumn-spacing
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setHomogeneous
Determines whether all children should be allocated the same size.- Parameters:
homogeneous
- the value for thehomogeneous
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMaxChildrenPerLine
The maximum amount of children to request space for consecutively in the given orientation.- Parameters:
maxChildrenPerLine
- the value for themax-children-per-line
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMinChildrenPerLine
The minimum number of children to allocate consecutively in the given orientation.Setting the minimum children per line ensures that a reasonably small height will be requested for the overall minimum width of the box.
- Parameters:
minChildrenPerLine
- the value for themin-children-per-line
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setRowSpacing
The amount of vertical space between two children.- Parameters:
rowSpacing
- the value for therow-spacing
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSelectionMode
The selection mode used by the flow box.- Parameters:
selectionMode
- the value for theselection-mode
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onActivateCursorChild
Emitted when the user activates thebox
.This is a keybinding signal.
- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onChildActivated
Emitted when a child has been activated by the user.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onMoveCursor
Emitted when the user initiates a cursor movement.This is a keybinding signal. Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control the cursor programmatically.
The default bindings for this signal come in two variants, the variant with the Shift modifier extends the selection, the variant without the Shift modifier does not. There are too many key combinations to list them all here.
←
,→
,↑
,↓
move by individual childrenHome
,End
move to the ends of the boxPgUp
,PgDn
move vertically by pages
- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onSelectAll
Emitted to select all children of the box, if the selection mode permits it.This is a keybinding signal.
The default bindings for this signal is
Ctrl
-a
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onSelectedChildrenChanged
Emitted when the set of selected children changes.Use
FlowBox.selectedForeach(org.gnome.gtk.FlowBoxForeachFunc)
orFlowBox.getSelectedChildren()
to obtain the selected children.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onToggleCursorChild
Emitted to toggle the selection of the child that has the focus.This is a keybinding signal.
The default binding for this signal is
Ctrl
-Space
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onUnselectAll
Emitted to unselect all children of the box, if the selection mode permits it.This is a keybinding signal.
The default bindings for this signal is
Ctrl
-Shift
-a
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-