Class Squeezer.Builder<B extends Squeezer.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:
Squeezer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theSqueezerobject.setAllowNone(boolean allowNone) Deprecated.See the migration guidesetHomogeneous(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, 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 theSqueezerobject. 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:
buildin classWidget.Builder<B extends Squeezer.Builder<B>>- Returns:
- a new instance of
Squeezerwith 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-noneproperty- Returns:
- the
Builderinstance 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 thehomogeneousproperty- Returns:
- the
Builderinstance 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-sizeproperty- Returns:
- the
Builderinstance 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-policyproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setTransitionDuration
Deprecated.The transition animation duration, in milliseconds.- Parameters:
transitionDuration- the value for thetransition-durationproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setTransitionType
Deprecated.The type of animation used for transitions between children.- Parameters:
transitionType- the value for thetransition-typeproperty- Returns:
- the
Builderinstance 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 thexalignproperty- Returns:
- the
Builderinstance 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 theyalignproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-