public static interface ResponsiveGridLayout.Row extends ResponsiveGridLayout.GridElement
ResponsiveGridLayout.Column
s with the ability to provide content alignment.
Corresponds to the <div class="row">
element.
Modifier and Type | Method and Description |
---|---|
void |
addAlignItems(ResponsiveGridLayout.Breakpoint breakpoint,
ResponsiveGridLayout.AlignItems alignItems)
Adds information regarding how columns are laid out along the cross
axis on the current row at the given breakpoint.
|
ResponsiveGridLayout.Column |
addColumn()
Creates a new
ResponsiveGridLayout.Column and adds it to this row. |
ResponsiveGridLayout.Column |
addColumn(int index)
Creates a new
ResponsiveGridLayout.Column and adds it to the given position in this row. |
void |
addJustifyContent(ResponsiveGridLayout.Breakpoint breakpoint,
ResponsiveGridLayout.JustifyContent justifyContent)
Adds information regarding how columns are laid out along the main axis on
the current row at the given breakpoint.
|
void |
addRowColumns(ResponsiveGridLayout.Breakpoint breakpoint,
ResponsiveGridLayout.RowColumnsValue columnsValue)
Adds information regarding what number of columns in the row will be
at the given breakpoint.
|
java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.AlignItems> |
getAlignItems()
Returns the map that contains information regarding how columns are laid
out along the cross axis on the current row at a specific breakpoint.
|
java.util.List<ResponsiveGridLayout.Column> |
getColumns() |
float |
getHeight()
Returns the height of this row.
|
SizeUnit |
getHeightSizeUnit()
Returns the height property units.
|
java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.JustifyContent> |
getJustifyContent()
Returns the map that contains information regarding how columns are laid
out along the main axis on the current row at a specific breakpoint.
|
java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.RowColumnsValue> |
getRowColumns()
Returns the map that contains information regarding what
number of columns in the row will be at a specific breakpoint.
|
boolean |
isGuttersEnabled() |
void |
removeAlignItems(ResponsiveGridLayout.Breakpoint breakpoint)
Removes the mapping of how columns are laid out along the cross
axis on the current row for the given breakpoint if it is present.
|
void |
removeAllColumns()
Removes all columns from this row.
|
void |
removeColumn(ResponsiveGridLayout.Column column)
Removes the given column from this row.
|
void |
removeJustifyContent(ResponsiveGridLayout.Breakpoint breakpoint)
Removes the mapping of how columns are laid out along the main
axis on the current row for the given breakpoint if it is present.
|
void |
removeRowColumns(ResponsiveGridLayout.Breakpoint breakpoint)
Removes the mapping of the number of columns in the row
for the given breakpoint if it is present.
|
void |
setAlignItems(java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.AlignItems> alignItems)
Sets a new mapping of how columns are laid out along the cross axis on
the current row with corresponding breakpoints.
|
default void |
setAlignItems(ResponsiveGridLayout.AlignItems alignItems)
Sets a new mapping of how columns are laid out along the cross axis
on the current row at all breakpoints, i.e.
|
default void |
setAlignItems(ResponsiveGridLayout.Breakpoint breakpoint,
ResponsiveGridLayout.AlignItems alignItems)
Sets a new mapping of how columns are laid out along the cross axis on
the current row with the specified breakpoint.
|
void |
setGuttersEnabled(boolean guttersEnabled)
Sets whether gutters are enabled.
|
void |
setHeight(java.lang.String height)
Sets the height of the component using String presentation.
|
default void |
setHeightAuto()
Sets row height to
Component.AUTO_SIZE . |
default void |
setHeightFull()
Sets row height to
Component.FULL_SIZE . |
void |
setJustifyContent(java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.JustifyContent> justifyContent)
Sets a new mapping of how columns are laid out along the main axis on
the current row with corresponding breakpoints.
|
default void |
setJustifyContent(ResponsiveGridLayout.Breakpoint breakpoint,
ResponsiveGridLayout.JustifyContent justifyContent)
Sets a new mapping of how columns are laid out along the main axis on
the current row with the specified breakpoint.
|
default void |
setJustifyContent(ResponsiveGridLayout.JustifyContent justifyContent)
Sets a new mapping of how columns are laid out along the main axis
on the current row at all breakpoints, i.e.
|
void |
setRowColumns(java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.RowColumnsValue> columns)
Sets a new mapping of the number of columns in the row with corresponding breakpoints.
|
default void |
setRowColumns(ResponsiveGridLayout.Breakpoint breakpoint,
ResponsiveGridLayout.RowColumnsValue columnsValue)
Sets a new mapping of the number of columns in the row with the specified breakpoint.
|
default void |
setRowColumns(ResponsiveGridLayout.RowColumnsValue columnsValue)
Sets a new mapping of the number of columns in the row that will
be applied for all breakpoints, i.e.
|
addStyleName, getId, getStyleName, removeStyleName, setId, setStyleName
ResponsiveGridLayout.Column addColumn()
ResponsiveGridLayout.Column
and adds it to this row.java.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screenResponsiveGridLayout.Column addColumn(int index)
ResponsiveGridLayout.Column
and adds it to the given position in this row.index
- the position of the new column. The columns that are
currently in and after the position are shifted forwardsjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screenvoid removeColumn(ResponsiveGridLayout.Column column)
column
- the column to be removedjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screenvoid removeAllColumns()
java.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screenjava.util.List<ResponsiveGridLayout.Column> getColumns()
boolean isGuttersEnabled()
@StudioProperty(defaultValue="true") void setGuttersEnabled(boolean guttersEnabled)
If set to false
, the .no-gutters
style will be added to this row.
It removes the negative margins from the row and the horizontal padding from all
immediate children columns.
guttersEnabled
- a boolean value specifying if the row should have gutters or notjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screenfloat getHeight()
getHeightSizeUnit()
} property.SizeUnit getHeightSizeUnit()
@StudioProperty(name="height", type=SIZE, defaultValue="-1px") void setHeight(java.lang.String height)
String presentation is similar to what is used in Cascading Style Sheets. Size can be length or percentage of available size.
The empty string ("") or null will unset the height and set the units to pixels.
height
- the height to be setjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screendefault void setHeightAuto()
Component.AUTO_SIZE
.java.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screendefault void setHeightFull()
Component.FULL_SIZE
.java.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screenjava.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.RowColumnsValue> getRowColumns()
Corresponds to the .row-cols-{breakpoint}-*
responsive styles.
@StudioProperty(name="cols", type=INTEGER) default void setRowColumns(ResponsiveGridLayout.RowColumnsValue columnsValue)
ResponsiveGridLayout.Breakpoint.XS
.
Clears previous values and creates a map with a single value.columnsValue
- the instance of ResponsiveGridLayout.RowColumnsValue
to set for all breakpointjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screensetRowColumns(Map)
default void setRowColumns(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.RowColumnsValue columnsValue)
breakpoint
- the breakpoint to start fromcolumnsValue
- the instance of ResponsiveGridLayout.RowColumnsValue
to setjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screensetRowColumns(Map)
void setRowColumns(java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.RowColumnsValue> columns)
Corresponds to the .row-cols-{breakpoint}-*
responsive styles.
columns
- the map that contains information regarding what
number of columns in the row will be at a specific breakpointjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screenvoid addRowColumns(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.RowColumnsValue columnsValue)
ResponsiveGridLayout.RowColumnsValue
instance.breakpoint
- the breakpoint with which the specified ResponsiveGridLayout.RowColumnsValue
instance is to be associatedcolumnsValue
- the ResponsiveGridLayout.RowColumnsValue
instance to be associated
with the specified breakpointjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screensetRowColumns(Map)
void removeRowColumns(ResponsiveGridLayout.Breakpoint breakpoint)
breakpoint
- the breakpoint for which to remove mappingjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screenjava.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.AlignItems> getAlignItems()
Corresponds to the .align-items-{breakpoint}-*
responsive styles.
@StudioProperty(type=ENUMERATION, options={"START","CENTER","END","BASELINE","STRETCH"}) default void setAlignItems(ResponsiveGridLayout.AlignItems alignItems)
ResponsiveGridLayout.Breakpoint.XS
.
Clears previous values and creates a map with a single value.alignItems
- the ResponsiveGridLayout.AlignItems
value to set for all breakpointsjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screensetAlignItems(Map)
default void setAlignItems(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.AlignItems alignItems)
breakpoint
- the breakpoint to start fromalignItems
- the ResponsiveGridLayout.AlignItems
value to setjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screensetAlignItems(Map)
void setAlignItems(java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.AlignItems> alignItems)
Corresponds to the .align-items-{breakpoint}-*
responsive styles.
alignItems
- the map that contains information regarding how columns
are laid out along the cross axis on the current row at
a specific breakpointjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screenvoid addAlignItems(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.AlignItems alignItems)
ResponsiveGridLayout.AlignItems
value.breakpoint
- the breakpoint with which the specified ResponsiveGridLayout.AlignItems
value is to be associatedalignItems
- the ResponsiveGridLayout.AlignItems
value to be associated
with the specified breakpointjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screensetAlignItems(Map)
void removeAlignItems(ResponsiveGridLayout.Breakpoint breakpoint)
breakpoint
- the breakpoint for which to remove mappingjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screenjava.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.JustifyContent> getJustifyContent()
Corresponds to the .justify-content-{breakpoint}-*
responsive styles.
@StudioProperty(type=ENUMERATION, options={"AROUND","BETWEEN","CENTER","END","START"}) default void setJustifyContent(ResponsiveGridLayout.JustifyContent justifyContent)
ResponsiveGridLayout.Breakpoint.XS
.
Clears previous values and creates a map with a single value.justifyContent
- the ResponsiveGridLayout.JustifyContent
value to set for all breakpointsjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screensetJustifyContent(Map)
default void setJustifyContent(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.JustifyContent justifyContent)
breakpoint
- the breakpoint to start fromjustifyContent
- the ResponsiveGridLayout.JustifyContent
value to setjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screensetJustifyContent(Map)
void setJustifyContent(java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.JustifyContent> justifyContent)
Corresponds to the .justify-content-{breakpoint}-*
responsive styles.
justifyContent
- the map that contains information regarding how columns
are laid out along the main axis on the current row at
a specific breakpointjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screenvoid addJustifyContent(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.JustifyContent justifyContent)
ResponsiveGridLayout.JustifyContent
value.breakpoint
- the breakpoint with which the specified ResponsiveGridLayout.AlignItems
value is to be associatedjustifyContent
- the ResponsiveGridLayout.JustifyContent
value to be associated
with the specified breakpointjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screensetJustifyContent(Map)
void removeJustifyContent(ResponsiveGridLayout.Breakpoint breakpoint)
breakpoint
- the breakpoint for which to remove mappingjava.lang.IllegalStateException
- if parent responsive grid layout has been shown on a screen