Class FlowBox.Builder<B extends FlowBox.Builder<B>>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,Orientable.Builder<B>,BuilderInterface
- Enclosing class:
FlowBox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theFlowBoxobject.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, setLimitEvents, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequestMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRoleMethods inherited from interface org.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArenaMethods inherited from interface org.gnome.gtk.Orientable.Builder
setOrientation
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theFlowBoxobject. 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:
buildin classWidget.Builder<B extends FlowBox.Builder<B>>- Returns:
- a new instance of
FlowBoxwith the properties that were set in the Builder object.
-
setAcceptUnpairedRelease
Whether to accept unpaired release events.- Parameters:
acceptUnpairedRelease- the value for theaccept-unpaired-releaseproperty- Returns:
- the
Builderinstance 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-clickproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setColumnSpacing
The amount of horizontal space between two children.- Parameters:
columnSpacing- the value for thecolumn-spacingproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setHomogeneous
Determines whether all children should be allocated the same size.- Parameters:
homogeneous- the value for thehomogeneousproperty- Returns:
- the
Builderinstance 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-lineproperty- Returns:
- the
Builderinstance 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-lineproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setRowSpacing
The amount of vertical space between two children.- Parameters:
rowSpacing- the value for therow-spacingproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setSelectionMode
The selection mode used by the flow box.- Parameters:
selectionMode- the value for theselection-modeproperty- Returns:
- the
Builderinstance 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
Builderinstance 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
Builderinstance 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,Endmove to the ends of the boxPgUp,PgDnmove vertically by pages
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance 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
Builderinstance 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
Builderinstance 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
Builderinstance 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
Builderinstance is returned, to allow method chaining - See Also:
-