Package org.gnome.gtk
Class GridLayoutChild.Builder<B extends GridLayoutChild.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.GridLayoutChild.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
GridLayoutChild
public static class GridLayoutChild.Builder<B extends GridLayoutChild.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 theGridLayoutChildobject.setColumn(int column) The column to place the child in.setColumnSpan(int columnSpan) The number of columns the child spans to.setRow(int row) The row to place the child in.setRowSpan(int rowSpan) The number of rows the child spans to.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 theGridLayoutChildobject. 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 toGridLayoutChild.- Overrides:
buildin classLayoutChild.Builder<B extends GridLayoutChild.Builder<B>>- Returns:
- a new instance of
GridLayoutChildwith the properties that were set in the Builder object.
-
setColumn
The column to place the child in.- Parameters:
column- the value for thecolumnproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setColumnSpan
The number of columns the child spans to.- Parameters:
columnSpan- the value for thecolumn-spanproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setRow
The row to place the child in.- Parameters:
row- the value for therowproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setRowSpan
The number of rows the child spans to.- Parameters:
rowSpan- the value for therow-spanproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-