Package org.gnome.adw
Class SqueezerPage.Builder<B extends SqueezerPage.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.adw.SqueezerPage.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
SqueezerPage
public static class SqueezerPage.Builder<B extends SqueezerPage.Builder<B>>
extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theSqueezerPage
object.Deprecated.See the migration guidesetEnabled
(boolean enabled) Deprecated.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theSqueezerPage
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 toSqueezerPage
.- Overrides:
build
in classGObject.Builder<B extends SqueezerPage.Builder<B>>
- Returns:
- a new instance of
SqueezerPage
with the properties that were set in the Builder object.
-
setChild
Deprecated.The the squeezer child to which the page belongs.- Parameters:
child
- the value for thechild
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setEnabled
Deprecated.Whether the child is enabled.If a child is disabled, it will be ignored when looking for the child fitting the available size best.
This allows to programmatically and prematurely hide a child even if it fits in the available space.
This can be used e.g. to ensure a certain child is hidden below a certain window width, or any other constraint you find suitable.
- Parameters:
enabled
- the value for theenabled
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-