Class OverlaySplitView.Builder<B extends OverlaySplitView.Builder<B>>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,BuilderInterface
- Enclosing class:
OverlaySplitView
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theOverlaySplitViewobject.setCollapsed(boolean collapsed) Whether the split view is collapsed.setContent(Widget content) The content widget.setEnableHideGesture(boolean enableHideGesture) Whether the sidebar can be closed with a swipe gesture.setEnableShowGesture(boolean enableShowGesture) Whether the sidebar can be opened with an edge swipe gesture.setMaxSidebarWidth(double maxSidebarWidth) The maximum sidebar width.setMinSidebarWidth(double minSidebarWidth) The minimum sidebar width.setPinSidebar(boolean pinSidebar) Whether the sidebar widget is pinned.setShowSidebar(boolean showSidebar) Whether the sidebar widget is shown.setSidebar(Widget sidebar) The sidebar widget.setSidebarPosition(PackType sidebarPosition) The sidebar position.setSidebarWidthFraction(double sidebarWidthFraction) The preferred sidebar width as a fraction of the total width.setSidebarWidthUnit(LengthUnit sidebarWidthUnit) The length unit for minimum and maximum sidebar widths.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, getArena
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theOverlaySplitViewobject. 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 toOverlaySplitView.- Overrides:
buildin classWidget.Builder<B extends OverlaySplitView.Builder<B>>- Returns:
- a new instance of
OverlaySplitViewwith the properties that were set in the Builder object.
-
setCollapsed
Whether the split view is collapsed.When collapsed, the sidebar widget is presented as an overlay above the content widget, otherwise they are displayed side by side.
- Parameters:
collapsed- the value for thecollapsedproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.4
-
setContent
-
setEnableHideGesture
Whether the sidebar can be closed with a swipe gesture.Only touchscreen swipes are supported.
- Parameters:
enableHideGesture- the value for theenable-hide-gestureproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.4
-
setEnableShowGesture
Whether the sidebar can be opened with an edge swipe gesture.Only touchscreen swipes are supported.
- Parameters:
enableShowGesture- the value for theenable-show-gestureproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.4
-
setMaxSidebarWidth
The maximum sidebar width.Maximum width is affected by
OverlaySplitView:sidebar-width-unit.The sidebar widget can still be allocated with larger width if its own minimum width exceeds it.
- Parameters:
maxSidebarWidth- the value for themax-sidebar-widthproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.4
-
setMinSidebarWidth
The minimum sidebar width.Minimum width is affected by
OverlaySplitView:sidebar-width-unit.The sidebar widget can still be allocated with larger width if its own minimum width exceeds it.
- Parameters:
minSidebarWidth- the value for themin-sidebar-widthproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.4
-
setPinSidebar
Whether the sidebar widget is pinned.By default, collapsing
selfautomatically hides the sidebar widget, and uncollapsing it shows the sidebar. If set toTRUE, sidebar visibility never changes on its own.- Parameters:
pinSidebar- the value for thepin-sidebarproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.4
-
setShowSidebar
Whether the sidebar widget is shown.- Parameters:
showSidebar- the value for theshow-sidebarproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.4
-
setSidebar
-
setSidebarPosition
The sidebar position.If it's set to
GTK_PACK_START, the sidebar is displayed before the content, ifGTK_PACK_END, it's displayed after the content.- Parameters:
sidebarPosition- the value for thesidebar-positionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.4
-
setSidebarWidthFraction
The preferred sidebar width as a fraction of the total width.The preferred width is additionally limited by
OverlaySplitView:min-sidebar-widthandOverlaySplitView:max-sidebar-width.The sidebar widget can be allocated with larger width if its own minimum width exceeds the preferred width.
- Parameters:
sidebarWidthFraction- the value for thesidebar-width-fractionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.4
-
setSidebarWidthUnit
The length unit for minimum and maximum sidebar widths.See
OverlaySplitView:min-sidebar-widthandOverlaySplitView:max-sidebar-width.- Parameters:
sidebarWidthUnit- the value for thesidebar-width-unitproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.4
-