Package org.gnome.gtk
Class GridLayoutChild.Builder<B extends GridLayoutChild.Builder<B>>
java.lang.Object
io.github.jwharm.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theGridLayoutChild
object.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, setLayoutManager
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 theGridLayoutChild
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 toGridLayoutChild
.- Overrides:
build
in classLayoutChild.Builder<B extends GridLayoutChild.Builder<B>>
- Returns:
- a new instance of
GridLayoutChild
with the properties that were set in the Builder object.
-
setColumn
The column to place the child in.- Parameters:
column
- the value for thecolumn
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setColumnSpan
The number of columns the child spans to.- Parameters:
columnSpan
- the value for thecolumn-span
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setRow
The row to place the child in.- Parameters:
row
- the value for therow
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setRowSpan
The number of rows the child spans to.- Parameters:
rowSpan
- the value for therow-span
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-