Package org.gnome.gtk
Class OverlayLayoutChild.Builder<B extends OverlayLayoutChild.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.LayoutChild.Builder<B>
org.gnome.gtk.OverlayLayoutChild.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
OverlayLayoutChild
public static class OverlayLayoutChild.Builder<B extends OverlayLayoutChild.Builder<B>>
extends LayoutChild.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theOverlayLayoutChildobject.setClipOverlay(boolean clipOverlay) Whether the child should be clipped to fit the parent's size.setMeasure(boolean measure) Whether the child size should contribute to theGtkOverlayLayout's measurement.Methods inherited from class org.gnome.gtk.LayoutChild.Builder
setChildWidget, setLayoutManagerMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theOverlayLayoutChildobject. 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 toOverlayLayoutChild.- Overrides:
buildin classLayoutChild.Builder<B extends OverlayLayoutChild.Builder<B>>- Returns:
- a new instance of
OverlayLayoutChildwith the properties that were set in the Builder object.
-
setClipOverlay
Whether the child should be clipped to fit the parent's size.- Parameters:
clipOverlay- the value for theclip-overlayproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setMeasure
Whether the child size should contribute to theGtkOverlayLayout's measurement.- Parameters:
measure- the value for themeasureproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-