Class Flap.Builder<B extends Flap.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:
Flap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theFlap
object.setContent
(Widget content) Deprecated.Deprecated.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, 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 theFlap
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 toFlap
.- Overrides:
build
in classWidget.Builder<B extends Flap.Builder<B>>
- Returns:
- a new instance of
Flap
with 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 thecontent
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setFlap
Deprecated.The flap widget.It's only visible when
Flap:reveal-progress
is greater than 0.- Parameters:
flap
- the value for theflap
property- Returns:
- the
Builder
instance 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-position
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setFoldDuration
Deprecated.The fold transition animation duration, in milliseconds.- Parameters:
foldDuration
- the value for thefold-duration
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setFoldPolicy
Deprecated.The fold policy for the flap.- Parameters:
foldPolicy
- the value for thefold-policy
property- Returns:
- the
Builder
instance 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-policy
property- Returns:
- the
Builder
instance 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-flap
value never changes on its own.- Parameters:
locked
- the value for thelocked
property- Returns:
- the
Builder
instance 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 theEsc
key, will close the flap. IfFALSE
, clicks are passed through to the content widget.- Parameters:
modal
- the value for themodal
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setRevealFlap
Deprecated.Whether the flap widget is revealed.- Parameters:
revealFlap
- the value for thereveal-flap
property- Returns:
- the
Builder
instance 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-params
property- Returns:
- the
Builder
instance 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-type
value.- Parameters:
separator
- the value for theseparator
property- Returns:
- the
Builder
instance 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-type
value.- Parameters:
swipeToClose
- the value for theswipe-to-close
property- Returns:
- the
Builder
instance 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-type
value.- Parameters:
swipeToOpen
- the value for theswipe-to-open
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTransitionType
Deprecated.the type of animation used for reveal and fold transitions.Flap:flap
is transparent by default, which means the content will be seen through it withADW_FLAP_TRANSITION_TYPE_OVER
transitions; add the.background
style class to it if this is unwanted.- Parameters:
transitionType
- the value for thetransition-type
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-