Class Flap.Builder<B extends Flap.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:
Flap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theFlapobject.setContent(Widget content) Deprecated.See the migration guideDeprecated.setFlapPosition(PackType flapPosition) Deprecated.setFoldDuration(int foldDuration) Deprecated.setFoldPolicy(FlapFoldPolicy foldPolicy) Deprecated.setFoldThresholdPolicy(FoldThresholdPolicy foldThresholdPolicy) Deprecated.setLocked(boolean locked) Deprecated.setModal(boolean modal) Deprecated.setRevealFlap(boolean revealFlap) Deprecated.setRevealParams(SpringParams revealParams) Deprecated.setSeparator(Widget separator) Deprecated.setSwipeToClose(boolean swipeToClose) Deprecated.setSwipeToOpen(boolean swipeToOpen) Deprecated.setTransitionType(FlapTransitionType transitionType) 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 theFlapobject. 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 toFlap.- Overrides:
buildin classWidget.Builder<B extends Flap.Builder<B>>- Returns:
- a new instance of
Flapwith the properties that were set in the Builder object.
-
setContent
Deprecated.The content widget.It's always displayed when unfolded, and partially visible when folded.
- Parameters:
content- the value for thecontentproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setFlap
Deprecated.The flap widget.It's only visible when
Flap:reveal-progressis greater than 0.- Parameters:
flap- the value for theflapproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setFlapPosition
Deprecated.The flap position.If it's set to
GTK_PACK_START, the flap is displayed before the content, ifGTK_PACK_END, it's displayed after the content.- Parameters:
flapPosition- the value for theflap-positionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setFoldDuration
Deprecated.The fold transition animation duration, in milliseconds.- Parameters:
foldDuration- the value for thefold-durationproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setFoldPolicy
Deprecated.The fold policy for the flap.- Parameters:
foldPolicy- the value for thefold-policyproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setFoldThresholdPolicy
Deprecated.Determines when the flap will fold.If set to
ADW_FOLD_THRESHOLD_POLICY_MINIMUM, flap 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
-
setLocked
Deprecated.Whether the flap is locked.If
FALSE, folding when the flap is revealed automatically closes it, and unfolding it when the flap is not revealed opens it. IfTRUE,Flap:reveal-flapvalue never changes on its own.- Parameters:
locked- the value for thelockedproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setModal
Deprecated.Whether the flap is modal.If
TRUE, clicking the content widget while flap is revealed, as well as pressing theEsckey, will close the flap. IfFALSE, clicks are passed through to the content widget.- Parameters:
modal- the value for themodalproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setRevealFlap
Deprecated.Whether the flap widget is revealed.- Parameters:
revealFlap- the value for thereveal-flapproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setRevealParams
Deprecated.The reveal animation spring parameters.The default value is equivalent to:
adw_spring_params_new (1, 0.5, 500)- Parameters:
revealParams- the value for thereveal-paramsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setSeparator
Deprecated.The separator widget.It's displayed between content and flap when there's no shadow to display. When exactly it's visible depends on the
Flap:transition-typevalue.- Parameters:
separator- the value for theseparatorproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setSwipeToClose
Deprecated.Whether the flap can be closed with a swipe gesture.The area that can be swiped depends on the
Flap:transition-typevalue.- Parameters:
swipeToClose- the value for theswipe-to-closeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setSwipeToOpen
Deprecated.Whether the flap can be opened with a swipe gesture.The area that can be swiped depends on the
Flap:transition-typevalue.- Parameters:
swipeToOpen- the value for theswipe-to-openproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setTransitionType
Deprecated.the type of animation used for reveal and fold transitions.Flap:flapis transparent by default, which means the content will be seen through it withADW_FLAP_TRANSITION_TYPE_OVERtransitions; add the.backgroundstyle class to it if this is unwanted.- Parameters:
transitionType- the value for thetransition-typeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-