protected static class ResponsiveGridLayoutImpl.RowImpl extends ResponsiveGridLayoutImpl.AbstractGridElementImpl<JmixResponsiveGridLayout.Row> implements ResponsiveGridLayout.Row
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.AlignItems> |
alignItems |
protected java.util.List<ResponsiveGridLayout.Column> |
columnOrder |
protected java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.JustifyContent> |
justifyContent |
protected java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.RowColumnsValue> |
rowColumns |
gridElement, id, owner
Constructor and Description |
---|
RowImpl(JmixResponsiveGridLayout.Row row,
ResponsiveGridLayoutImpl owner) |
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.
|
void |
setGuttersEnabled(boolean guttersEnabled)
Sets whether gutters are enabled.
|
void |
setHeight(java.lang.String height)
Sets the height of the component using String presentation.
|
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.
|
void |
setRowColumns(java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.RowColumnsValue> columnsValue)
Sets a new mapping of the number of columns in the row with corresponding breakpoints.
|
protected void |
updateAlignItems() |
protected void |
updateJustifyContent() |
protected void |
updateRowColumnsValue() |
addStyleName, checkInitializedState, getId, getOwner, getStyleName, getVaadinGridElement, removeStyleName, setId, setStyleName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setAlignItems, setAlignItems, setHeightAuto, setHeightFull, setJustifyContent, setJustifyContent, setRowColumns, setRowColumns
addStyleName, getId, getStyleName, removeStyleName, setId, setStyleName
protected java.util.List<ResponsiveGridLayout.Column> columnOrder
protected java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.RowColumnsValue> rowColumns
protected java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.AlignItems> alignItems
protected java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.JustifyContent> justifyContent
public RowImpl(JmixResponsiveGridLayout.Row row, ResponsiveGridLayoutImpl owner)
public ResponsiveGridLayout.Column addColumn()
ResponsiveGridLayout.Row
ResponsiveGridLayout.Column
and adds it to this row.addColumn
in interface ResponsiveGridLayout.Row
public ResponsiveGridLayout.Column addColumn(int index)
ResponsiveGridLayout.Row
ResponsiveGridLayout.Column
and adds it to the given position in this row.addColumn
in interface ResponsiveGridLayout.Row
index
- the position of the new column. The columns that are
currently in and after the position are shifted forwardspublic void removeColumn(ResponsiveGridLayout.Column column)
ResponsiveGridLayout.Row
removeColumn
in interface ResponsiveGridLayout.Row
column
- the column to be removedpublic void removeAllColumns()
ResponsiveGridLayout.Row
removeAllColumns
in interface ResponsiveGridLayout.Row
public java.util.List<ResponsiveGridLayout.Column> getColumns()
getColumns
in interface ResponsiveGridLayout.Row
public boolean isGuttersEnabled()
isGuttersEnabled
in interface ResponsiveGridLayout.Row
public void setGuttersEnabled(boolean guttersEnabled)
ResponsiveGridLayout.Row
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.
setGuttersEnabled
in interface ResponsiveGridLayout.Row
guttersEnabled
- a boolean value specifying if the row should have gutters or notpublic float getHeight()
ResponsiveGridLayout.Row
getHeight
in interface ResponsiveGridLayout.Row
ResponsiveGridLayout.Row.getHeightSizeUnit()
} property.public SizeUnit getHeightSizeUnit()
ResponsiveGridLayout.Row
getHeightSizeUnit
in interface ResponsiveGridLayout.Row
public void setHeight(java.lang.String height)
ResponsiveGridLayout.Row
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.
setHeight
in interface ResponsiveGridLayout.Row
height
- the height to be setpublic java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.RowColumnsValue> getRowColumns()
ResponsiveGridLayout.Row
Corresponds to the .row-cols-{breakpoint}-*
responsive styles.
getRowColumns
in interface ResponsiveGridLayout.Row
public void setRowColumns(java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.RowColumnsValue> columnsValue)
ResponsiveGridLayout.Row
Corresponds to the .row-cols-{breakpoint}-*
responsive styles.
setRowColumns
in interface ResponsiveGridLayout.Row
columnsValue
- the map that contains information regarding what
number of columns in the row will be at a specific breakpointpublic void addRowColumns(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.RowColumnsValue columnsValue)
ResponsiveGridLayout.Row
ResponsiveGridLayout.RowColumnsValue
instance.addRowColumns
in interface ResponsiveGridLayout.Row
breakpoint
- the breakpoint with which the specified ResponsiveGridLayout.RowColumnsValue
instance is to be associatedcolumnsValue
- the ResponsiveGridLayout.RowColumnsValue
instance to be associated
with the specified breakpointResponsiveGridLayout.Row.setRowColumns(Map)
public void removeRowColumns(ResponsiveGridLayout.Breakpoint breakpoint)
ResponsiveGridLayout.Row
removeRowColumns
in interface ResponsiveGridLayout.Row
breakpoint
- the breakpoint for which to remove mappingprotected void updateRowColumnsValue()
public java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.AlignItems> getAlignItems()
ResponsiveGridLayout.Row
Corresponds to the .align-items-{breakpoint}-*
responsive styles.
getAlignItems
in interface ResponsiveGridLayout.Row
public void setAlignItems(java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.AlignItems> alignItems)
ResponsiveGridLayout.Row
Corresponds to the .align-items-{breakpoint}-*
responsive styles.
setAlignItems
in interface ResponsiveGridLayout.Row
alignItems
- the map that contains information regarding how columns
are laid out along the cross axis on the current row at
a specific breakpointpublic void addAlignItems(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.AlignItems alignItems)
ResponsiveGridLayout.Row
ResponsiveGridLayout.AlignItems
value.addAlignItems
in interface ResponsiveGridLayout.Row
breakpoint
- the breakpoint with which the specified ResponsiveGridLayout.AlignItems
value is to be associatedalignItems
- the ResponsiveGridLayout.AlignItems
value to be associated
with the specified breakpointResponsiveGridLayout.Row.setAlignItems(Map)
public void removeAlignItems(ResponsiveGridLayout.Breakpoint breakpoint)
ResponsiveGridLayout.Row
removeAlignItems
in interface ResponsiveGridLayout.Row
breakpoint
- the breakpoint for which to remove mappingprotected void updateAlignItems()
public java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.JustifyContent> getJustifyContent()
ResponsiveGridLayout.Row
Corresponds to the .justify-content-{breakpoint}-*
responsive styles.
getJustifyContent
in interface ResponsiveGridLayout.Row
public void setJustifyContent(java.util.Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.JustifyContent> justifyContent)
ResponsiveGridLayout.Row
Corresponds to the .justify-content-{breakpoint}-*
responsive styles.
setJustifyContent
in interface ResponsiveGridLayout.Row
justifyContent
- the map that contains information regarding how columns
are laid out along the main axis on the current row at
a specific breakpointpublic void addJustifyContent(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.JustifyContent justifyContent)
ResponsiveGridLayout.Row
ResponsiveGridLayout.JustifyContent
value.addJustifyContent
in interface ResponsiveGridLayout.Row
breakpoint
- the breakpoint with which the specified ResponsiveGridLayout.AlignItems
value is to be associatedjustifyContent
- the ResponsiveGridLayout.JustifyContent
value to be associated
with the specified breakpointResponsiveGridLayout.Row.setJustifyContent(Map)
public void removeJustifyContent(ResponsiveGridLayout.Breakpoint breakpoint)
ResponsiveGridLayout.Row
removeJustifyContent
in interface ResponsiveGridLayout.Row
breakpoint
- the breakpoint for which to remove mappingprotected void updateJustifyContent()