Class Leaflet.Builder<B extends Leaflet.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:
Leaflet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theLeaflet
object.setCanNavigateBack
(boolean canNavigateBack) Deprecated.setCanNavigateForward
(boolean canNavigateForward) Deprecated.setCanUnfold
(boolean canUnfold) Deprecated.setChildTransitionParams
(SpringParams childTransitionParams) Deprecated.setFoldThresholdPolicy
(FoldThresholdPolicy foldThresholdPolicy) Deprecated.setHomogeneous
(boolean homogeneous) Deprecated.setModeTransitionDuration
(int modeTransitionDuration) Deprecated.setTransitionType
(LeafletTransitionType transitionType) Deprecated.setVisibleChild
(Widget visibleChild) Deprecated.setVisibleChildName
(String visibleChildName) Deprecated.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 theLeaflet
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 toLeaflet
.- Overrides:
build
in classWidget.Builder<B extends Leaflet.Builder<B>>
- Returns:
- a new instance of
Leaflet
with the properties that were set in the Builder object.
-
setCanUnfold
Deprecated.Whether or not the leaflet can unfold.- Parameters:
canUnfold
- the value for thecan-unfold
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setChildTransitionParams
Deprecated.The child transition spring parameters.The default value is equivalent to:
adw_spring_params_new (1, 0.5, 500)
- Parameters:
childTransitionParams
- the value for thechild-transition-params
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setFoldThresholdPolicy
Deprecated.Determines when the leaflet will fold.If set to
ADW_FOLD_THRESHOLD_POLICY_MINIMUM
, it will only fold when the children cannot fit anymore. WithADW_FOLD_THRESHOLD_POLICY_NATURAL
, it will fold as soon as children don't get their natural size.This can be useful if you have a long ellipsizing label and want to let it ellipsize instead of immediately folding.
- Parameters:
foldThresholdPolicy
- the value for thefold-threshold-policy
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setHomogeneous
Deprecated.Whether the leaflet allocates the same size for all children when folded.If set to
FALSE
, different children can have different size along the opposite orientation.- Parameters:
homogeneous
- the value for thehomogeneous
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setModeTransitionDuration
Deprecated.The mode transition animation duration, in milliseconds.- Parameters:
modeTransitionDuration
- the value for themode-transition-duration
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTransitionType
Deprecated.The type of animation used for transitions between modes and children.The transition type can be changed without problems at runtime, so it is possible to change the animation based on the mode or child that is about to become current.
- Parameters:
transitionType
- the value for thetransition-type
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setVisibleChild
Deprecated.The widget currently visible when the leaflet is folded.The transition is determined by
Leaflet:transition-type
andLeaflet:child-transition-params
. The transition can be cancelled by the user, in which case visible child will change back to the previously visible child.- Parameters:
visibleChild
- the value for thevisible-child
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setVisibleChildName
Deprecated.The name of the widget currently visible when the leaflet is folded.See
Leaflet:visible-child
.- Parameters:
visibleChildName
- the value for thevisible-child-name
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-