Package org.gnome.gtk
Class Paned.Builder<B extends Paned.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.InitiallyUnowned.Builder<B>
org.gnome.gtk.Widget.Builder<B>
org.gnome.gtk.Paned.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:
Paned
public static class Paned.Builder<B extends Paned.Builder<B>>
extends Widget.Builder<B>
implements Accessible.Builder<B>, Orientable.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building thePaned
object.Emitted to accept the current position of the handle when moving it using key bindings.Emitted to cancel moving the position of the handle using key bindings.Emitted to cycle the focus between the children of the paned.Emitted to cycle whether the paned should grab focus to allow the user to change position of the handle by using key bindings.onMoveHandle
(Paned.MoveHandleCallback handler) Emitted to move the handle with key bindings.Emitted to accept the current position of the handle and then move focus to the next widget in the focus chain.setEndChild
(Widget endChild) The second child.setPosition
(int position) Position of the separator in pixels, from the left/top.setPositionSet
(boolean positionSet) Whether theGtk.Paned:position
property has been set.setResizeEndChild
(boolean resizeEndChild) Determines whether the second child expands and shrinks along with the paned widget.setResizeStartChild
(boolean resizeStartChild) Determines whether the first child expands and shrinks along with the paned widget.setShrinkEndChild
(boolean shrinkEndChild) Determines whether the second child can be made smaller than its requisition.setShrinkStartChild
(boolean shrinkStartChild) Determines whether the first child can be made smaller than its requisition.setStartChild
(Widget startChild) The first child.setWideHandle
(boolean wideHandle) Whether theGtkPaned
should provide a stronger visual separation.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 thePaned
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 toPaned
.- Overrides:
build
in classWidget.Builder<B extends Paned.Builder<B>>
- Returns:
- a new instance of
Paned
with the properties that were set in the Builder object.
-
setEndChild
-
setPosition
Position of the separator in pixels, from the left/top.- Parameters:
position
- the value for theposition
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setPositionSet
Whether theGtk.Paned:position
property has been set.- Parameters:
positionSet
- the value for theposition-set
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setResizeEndChild
Determines whether the second child expands and shrinks along with the paned widget.- Parameters:
resizeEndChild
- the value for theresize-end-child
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setResizeStartChild
Determines whether the first child expands and shrinks along with the paned widget.- Parameters:
resizeStartChild
- the value for theresize-start-child
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setShrinkEndChild
Determines whether the second child can be made smaller than its requisition.- Parameters:
shrinkEndChild
- the value for theshrink-end-child
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setShrinkStartChild
Determines whether the first child can be made smaller than its requisition.- Parameters:
shrinkStartChild
- the value for theshrink-start-child
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setStartChild
-
setWideHandle
Whether theGtkPaned
should provide a stronger visual separation.For example, this could be set when a paned contains two
Notebook
s, whose tab rows would otherwise merge visually.- Parameters:
wideHandle
- the value for thewide-handle
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onAcceptPosition
Emitted to accept the current position of the handle when moving it using key bindings.This is a keybinding signal.
The default binding for this signal is
Return
orSpace
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onCancelPosition
Emitted to cancel moving the position of the handle using key bindings.The position of the handle will be reset to the value prior to moving it.
This is a keybinding signal.
The default binding for this signal is
Escape
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onCycleChildFocus
Emitted to cycle the focus between the children of the paned.This is a keybinding signal.
The default binding is
F6
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onCycleHandleFocus
Emitted to cycle whether the paned should grab focus to allow the user to change position of the handle by using key bindings.This is a keybinding signal.
The default binding for this signal is
F8
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onMoveHandle
Emitted to move the handle with key bindings.This is a keybinding signal.
The default bindings for this signal are
Ctrl
+←
,←
,Ctrl
+→
,→
,Ctrl
+↑
,↑
,Ctrl
+↓
,↓
,PgUp
,PgDn
,Home
,End
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onToggleHandleFocus
Emitted to accept the current position of the handle and then move focus to the next widget in the focus chain.This is a keybinding signal.
The default binding is
Tab
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-