Package org.gnome.gtk
Class Grid.Builder<B extends Grid.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.InitiallyUnowned.Builder<B>
org.gnome.gtk.Widget.Builder<B>
org.gnome.gtk.Grid.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,Accessible.Builder<B>
,Orientable.Builder<B>
- Enclosing class:
Grid
public static class Grid.Builder<B extends Grid.Builder<B>>
extends Widget.Builder<B>
implements Accessible.Builder<B>, Orientable.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theGrid
object.setBaselineRow
(int baselineRow) The row to align to the baseline when valign is using baseline alignment.setColumnHomogeneous
(boolean columnHomogeneous) Iftrue
, the columns are all the same width.setColumnSpacing
(int columnSpacing) The amount of space between two consecutive columns.setRowHomogeneous
(boolean rowHomogeneous) Iftrue
, the rows are all the same height.setRowSpacing
(int rowSpacing) The amount of space between two consecutive rows.Methods inherited from class org.gnome.gtk.Widget.Builder
onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, setCanFocus, setCanTarget, setCssClasses, setCssName, setCursor, setFocusable, setFocusOnClick, setHalign, setHasTooltip, setHeightRequest, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequest
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRole
Methods inherited from interface io.github.jwharm.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
Methods inherited from interface org.gnome.gtk.Orientable.Builder
setOrientation
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theGrid
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 toGrid
.- Overrides:
build
in classWidget.Builder<B extends Grid.Builder<B>>
- Returns:
- a new instance of
Grid
with the properties that were set in the Builder object.
-
setBaselineRow
The row to align to the baseline when valign is using baseline alignment.- Parameters:
baselineRow
- the value for thebaseline-row
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setColumnHomogeneous
Iftrue
, the columns are all 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 two consecutive columns.- Parameters:
columnSpacing
- the value for thecolumn-spacing
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setRowHomogeneous
Iftrue
, the rows are all 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 two consecutive rows.- Parameters:
rowSpacing
- the value for therow-spacing
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-