Class Squeezer.Builder<B extends Squeezer.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:
Squeezer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theSqueezer
object.setAllowNone
(boolean allowNone) Deprecated.setHomogeneous
(boolean homogeneous) Deprecated.setInterpolateSize
(boolean interpolateSize) Deprecated.setSwitchThresholdPolicy
(FoldThresholdPolicy switchThresholdPolicy) Deprecated.setTransitionDuration
(int transitionDuration) Deprecated.setTransitionType
(SqueezerTransitionType transitionType) Deprecated.setXalign
(float xalign) Deprecated.setYalign
(float yalign) 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 theSqueezer
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 toSqueezer
.- Overrides:
build
in classWidget.Builder<B extends Squeezer.Builder<B>>
- Returns:
- a new instance of
Squeezer
with the properties that were set in the Builder object.
-
setAllowNone
Deprecated.Whether to allow squeezing beyond the last child's minimum size.If set to
TRUE
, the squeezer can shrink to the point where no child can be shown. This is functionally equivalent to appending a widget with 0×0 minimum size.- Parameters:
allowNone
- the value for theallow-none
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setHomogeneous
Deprecated.Whether all children have the same size for the opposite orientation.For example, if a squeezer is horizontal and is homogeneous, it will request the same height for all its children. If it isn't, the squeezer may change size when a different child becomes visible.
- Parameters:
homogeneous
- the value for thehomogeneous
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setInterpolateSize
Deprecated.Whether the squeezer interpolates its size when changing the visible child.If
TRUE
, the squeezer will interpolate its size between the one of the previous visible child and the one of the new visible child, according to the set transition duration and the orientation, e.g. if the squeezer is horizontal, it will interpolate the its height.- Parameters:
interpolateSize
- the value for theinterpolate-size
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSwitchThresholdPolicy
Deprecated.The switch threshold policy.Determines when the squeezer will switch children.
If set to
ADW_FOLD_THRESHOLD_POLICY_MINIMUM
, it will only switch when the visible child cannot fit anymore. WithADW_FOLD_THRESHOLD_POLICY_NATURAL
, it will switch as soon as the visible child doesn'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 switching.
- Parameters:
switchThresholdPolicy
- the value for theswitch-threshold-policy
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTransitionDuration
Deprecated.The transition animation duration, in milliseconds.- Parameters:
transitionDuration
- the value for thetransition-duration
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTransitionType
Deprecated.The type of animation used for transitions between children.- Parameters:
transitionType
- the value for thetransition-type
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setXalign
Deprecated.The horizontal alignment, from 0 (start) to 1 (end).This affects the children allocation during transitions, when they exceed the size of the squeezer.
For example, 0.5 means the child will be centered, 0 means it will keep the start side aligned and overflow the end side, and 1 means the opposite.
- Parameters:
xalign
- the value for thexalign
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setYalign
Deprecated.The vertical alignment, from 0 (top) to 1 (bottom).This affects the children allocation during transitions, when they exceed the size of the squeezer.
For example, 0.5 means the child will be centered, 0 means it will keep the top side aligned and overflow the bottom side, and 1 means the opposite.
- Parameters:
yalign
- the value for theyalign
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-