Package org.gnome.gtk
Class CenterLayout.Builder<B extends CenterLayout.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.LayoutManager.Builder<B>
org.gnome.gtk.CenterLayout.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
CenterLayout
public static class CenterLayout.Builder<B extends CenterLayout.Builder<B>>
extends LayoutManager.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theCenterLayout
object.setShrinkCenterLast
(boolean shrinkCenterLast) Whether to shrink the center widget after other children.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
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theCenterLayout
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 toCenterLayout
.- Overrides:
build
in classLayoutManager.Builder<B extends CenterLayout.Builder<B>>
- Returns:
- a new instance of
CenterLayout
with the properties that were set in the Builder object.
-
setShrinkCenterLast
Whether to shrink the center widget after other children.By default, when there's no space to give all three children their natural widths, the start and end widgets start shrinking and the center child keeps natural width until they reach minimum width.
If set to
FALSE
, start and end widgets keep natural width and the center widget starts shrinking instead.- Parameters:
shrinkCenterLast
- the value for theshrink-center-last
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-