Class Leaflet.Builder<B extends Leaflet.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:
Leaflet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theLeafletobject.setCanNavigateBack(boolean canNavigateBack) Deprecated.See the migration guidesetCanNavigateForward(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, 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 theLeafletobject. 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:
buildin classWidget.Builder<B extends Leaflet.Builder<B>>- Returns:
- a new instance of
Leafletwith the properties that were set in the Builder object.
-
setCanUnfold
Deprecated.Whether or not the leaflet can unfold.- Parameters:
canUnfold- the value for thecan-unfoldproperty- Returns:
- the
Builderinstance 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-paramsproperty- Returns:
- the
Builderinstance 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-policyproperty- Returns:
- the
Builderinstance 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 thehomogeneousproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setModeTransitionDuration
Deprecated.The mode transition animation duration, in milliseconds.- Parameters:
modeTransitionDuration- the value for themode-transition-durationproperty- Returns:
- the
Builderinstance 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-typeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setVisibleChild
Deprecated.The widget currently visible when the leaflet is folded.The transition is determined by
Leaflet:transition-typeandLeaflet: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-childproperty- Returns:
- the
Builderinstance 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-nameproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-