Package org.gnome.gtk
Class GridLayout.Builder<B extends GridLayout.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.LayoutManager.Builder<B>
org.gnome.gtk.GridLayout.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
GridLayout
public static class GridLayout.Builder<B extends GridLayout.Builder<B>>
extends LayoutManager.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theGridLayoutobject.setBaselineRow(int baselineRow) The row to align to the baseline, whenGtkWidget:valignis set toAlign.BASELINE.setColumnHomogeneous(boolean columnHomogeneous) Whether all the columns in the grid have the same width.setColumnSpacing(int columnSpacing) The amount of space between to consecutive columns.setRowHomogeneous(boolean rowHomogeneous) Whether all the rows in the grid have the same height.setRowSpacing(int rowSpacing) The amount of space between to consecutive rows.Methods 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 theGridLayoutobject. 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 toGridLayout.- Overrides:
buildin classLayoutManager.Builder<B extends GridLayout.Builder<B>>- Returns:
- a new instance of
GridLayoutwith the properties that were set in the Builder object.
-
setBaselineRow
The row to align to the baseline, whenGtkWidget:valignis set toAlign.BASELINE.- Parameters:
baselineRow- the value for thebaseline-rowproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setColumnHomogeneous
Whether all the columns in the grid have the same width.- Parameters:
columnHomogeneous- the value for thecolumn-homogeneousproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setColumnSpacing
The amount of space between to consecutive columns.- Parameters:
columnSpacing- the value for thecolumn-spacingproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setRowHomogeneous
Whether all the rows in the grid have the same height.- Parameters:
rowHomogeneous- the value for therow-homogeneousproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setRowSpacing
The amount of space between to consecutive rows.- Parameters:
rowSpacing- the value for therow-spacingproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-