Package org.gnome.gtk
Class GridLayout.Builder<B extends GridLayout.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.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theGridLayout
object.setBaselineRow
(int baselineRow) The row to align to the baseline, whenGtkWidget:valign
is 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
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 theGridLayout
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 toGridLayout
.- Overrides:
build
in classLayoutManager.Builder<B extends GridLayout.Builder<B>>
- Returns:
- a new instance of
GridLayout
with the properties that were set in the Builder object.
-
setBaselineRow
The row to align to the baseline, whenGtkWidget:valign
is set toAlign.BASELINE
.- Parameters:
baselineRow
- the value for thebaseline-row
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setColumnHomogeneous
Whether all the columns in the grid have the same width.- Parameters:
columnHomogeneous
- the value for thecolumn-homogeneous
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setColumnSpacing
The amount of space between to consecutive columns.- Parameters:
columnSpacing
- the value for thecolumn-spacing
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setRowHomogeneous
Whether all the rows in the grid have the same height.- Parameters:
rowHomogeneous
- the value for therow-homogeneous
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setRowSpacing
The amount of space between to consecutive rows.- Parameters:
rowSpacing
- the value for therow-spacing
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-