Class ResponsiveGridLayoutImpl.RowImpl
- All Implemented Interfaces:
ResponsiveGridLayout.GridElement,ResponsiveGridLayout.Row
- Enclosing class:
- ResponsiveGridLayoutImpl
-
Field Summary
FieldsFields inherited from class io.jmix.ui.component.impl.ResponsiveGridLayoutImpl.AbstractGridElementImpl
gridElement, id, owner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlignItems(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.Creates a newResponsiveGridLayout.Columnand adds it to this row.addColumn(int index) Creates a newResponsiveGridLayout.Columnand adds it to the given position in this row.voidaddJustifyContent(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.voidaddRowColumns(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.RowColumnsValue columnsValue) Adds information regarding what number of columns in the row will be at the given breakpoint.Returns the map that contains information regarding how columns are laid out along the cross axis on the current row at a specific breakpoint.floatReturns the height of this row.Returns the height property units.Returns the map that contains information regarding how columns are laid out along the main axis on the current row at a specific breakpoint.Returns the map that contains information regarding what number of columns in the row will be at a specific breakpoint.booleanvoidremoveAlignItems(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.voidRemoves all columns from this row.voidRemoves the given column from this row.voidremoveJustifyContent(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.voidremoveRowColumns(ResponsiveGridLayout.Breakpoint breakpoint) Removes the mapping of the number of columns in the row for the given breakpoint if it is present.voidSets a new mapping of how columns are laid out along the cross axis on the current row with corresponding breakpoints.voidsetGuttersEnabled(boolean guttersEnabled) Sets whether gutters are enabled.voidSets the height of the component using String presentation.voidsetJustifyContent(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.voidsetRowColumns(Map<ResponsiveGridLayout.Breakpoint, ResponsiveGridLayout.RowColumnsValue> columnsValue) Sets a new mapping of the number of columns in the row with corresponding breakpoints.protected voidprotected voidprotected voidMethods inherited from class io.jmix.ui.component.impl.ResponsiveGridLayoutImpl.AbstractGridElementImpl
addStyleName, checkInitializedState, getId, getOwner, getStyleName, getVaadinGridElement, removeStyleName, setId, setStyleNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.component.ResponsiveGridLayout.GridElement
addStyleName, getId, getStyleName, removeStyleName, setId, setStyleNameMethods inherited from interface io.jmix.ui.component.ResponsiveGridLayout.Row
setAlignItems, setAlignItems, setHeightAuto, setHeightFull, setJustifyContent, setJustifyContent, setRowColumns, setRowColumns
-
Field Details
-
columnOrder
-
rowColumns
-
alignItems
-
justifyContent
-
-
Constructor Details
-
RowImpl
-
-
Method Details
-
addColumn
Description copied from interface:ResponsiveGridLayout.RowCreates a newResponsiveGridLayout.Columnand adds it to this row.- Specified by:
addColumnin interfaceResponsiveGridLayout.Row- Returns:
- the created column
-
addColumn
Description copied from interface:ResponsiveGridLayout.RowCreates a newResponsiveGridLayout.Columnand adds it to the given position in this row.- Specified by:
addColumnin interfaceResponsiveGridLayout.Row- Parameters:
index- the position of the new column. The columns that are currently in and after the position are shifted forwards- Returns:
- the created column
-
removeColumn
Description copied from interface:ResponsiveGridLayout.RowRemoves the given column from this row.- Specified by:
removeColumnin interfaceResponsiveGridLayout.Row- Parameters:
column- the column to be removed
-
removeAllColumns
public void removeAllColumns()Description copied from interface:ResponsiveGridLayout.RowRemoves all columns from this row.- Specified by:
removeAllColumnsin interfaceResponsiveGridLayout.Row
-
getColumns
- Specified by:
getColumnsin interfaceResponsiveGridLayout.Row- Returns:
- a list of contained columns
-
isGuttersEnabled
public boolean isGuttersEnabled()- Specified by:
isGuttersEnabledin interfaceResponsiveGridLayout.Row- Returns:
- whether gutters are enabled
-
setGuttersEnabled
public void setGuttersEnabled(boolean guttersEnabled) Description copied from interface:ResponsiveGridLayout.RowSets whether gutters are enabled. Gutters are enabled by default.If set to
false, the.no-guttersstyle will be added to this row. It removes the negative margins from the row and the horizontal padding from all immediate children columns.- Specified by:
setGuttersEnabledin interfaceResponsiveGridLayout.Row- Parameters:
guttersEnabled- a boolean value specifying if the row should have gutters or not
-
getHeight
public float getHeight()Description copied from interface:ResponsiveGridLayout.RowReturns the height of this row. A negative number implies unspecified size.- Specified by:
getHeightin interfaceResponsiveGridLayout.Row- Returns:
- height of the row in units specified by {
ResponsiveGridLayout.Row.getHeightSizeUnit()} property.
-
getHeightSizeUnit
Description copied from interface:ResponsiveGridLayout.RowReturns the height property units.- Specified by:
getHeightSizeUnitin interfaceResponsiveGridLayout.Row- Returns:
- units used in height property.
-
setHeight
Description copied from interface:ResponsiveGridLayout.RowSets the height of the component using String presentation.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.
- Specified by:
setHeightin interfaceResponsiveGridLayout.Row- Parameters:
height- the height to be set
-
getRowColumns
Description copied from interface:ResponsiveGridLayout.RowReturns the map that contains information regarding what number of columns in the row will be at a specific breakpoint.Corresponds to the
.row-cols-{breakpoint}-*responsive styles.- Specified by:
getRowColumnsin interfaceResponsiveGridLayout.Row- Returns:
- the map that contains information regarding what number of columns in the row will be at a specific breakpoint
-
setRowColumns
public void setRowColumns(Map<ResponsiveGridLayout.Breakpoint, ResponsiveGridLayout.RowColumnsValue> columnsValue) Description copied from interface:ResponsiveGridLayout.RowSets a new mapping of the number of columns in the row with corresponding breakpoints. Overrides previous values.Corresponds to the
.row-cols-{breakpoint}-*responsive styles.- Specified by:
setRowColumnsin interfaceResponsiveGridLayout.Row- Parameters:
columnsValue- the map that contains information regarding what number of columns in the row will be at a specific breakpoint
-
addRowColumns
public void addRowColumns(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.RowColumnsValue columnsValue) Description copied from interface:ResponsiveGridLayout.RowAdds information regarding what number of columns in the row will be at the given breakpoint. If a mapping for the breakpoint already exist, the old value is replaced by the specifiedResponsiveGridLayout.RowColumnsValueinstance.- Specified by:
addRowColumnsin interfaceResponsiveGridLayout.Row- Parameters:
breakpoint- the breakpoint with which the specifiedResponsiveGridLayout.RowColumnsValueinstance is to be associatedcolumnsValue- theResponsiveGridLayout.RowColumnsValueinstance to be associated with the specified breakpoint- See Also:
-
removeRowColumns
Description copied from interface:ResponsiveGridLayout.RowRemoves the mapping of the number of columns in the row for the given breakpoint if it is present.- Specified by:
removeRowColumnsin interfaceResponsiveGridLayout.Row- Parameters:
breakpoint- the breakpoint for which to remove mapping
-
updateRowColumnsValue
protected void updateRowColumnsValue() -
getAlignItems
Description copied from interface:ResponsiveGridLayout.RowReturns the map that contains information regarding how columns are laid out along the cross axis on the current row at a specific breakpoint.Corresponds to the
.align-items-{breakpoint}-*responsive styles.- Specified by:
getAlignItemsin interfaceResponsiveGridLayout.Row- Returns:
- the map that contains information regarding how columns are laid out along the cross axis on the current row at a specific breakpoint
-
setAlignItems
public void setAlignItems(Map<ResponsiveGridLayout.Breakpoint, ResponsiveGridLayout.AlignItems> alignItems) Description copied from interface:ResponsiveGridLayout.RowSets a new mapping of how columns are laid out along the cross axis on the current row with corresponding breakpoints. Overrides previous values.Corresponds to the
.align-items-{breakpoint}-*responsive styles.- Specified by:
setAlignItemsin interfaceResponsiveGridLayout.Row- Parameters:
alignItems- the map that contains information regarding how columns are laid out along the cross axis on the current row at a specific breakpoint
-
addAlignItems
public void addAlignItems(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.AlignItems alignItems) Description copied from interface:ResponsiveGridLayout.RowAdds information regarding how columns are laid out along the cross axis on the current row at the given breakpoint. If a mapping for the breakpoint already exist, the old value is replaced by the specifiedResponsiveGridLayout.AlignItemsvalue.- Specified by:
addAlignItemsin interfaceResponsiveGridLayout.Row- Parameters:
breakpoint- the breakpoint with which the specifiedResponsiveGridLayout.AlignItemsvalue is to be associatedalignItems- theResponsiveGridLayout.AlignItemsvalue to be associated with the specified breakpoint- See Also:
-
removeAlignItems
Description copied from interface:ResponsiveGridLayout.RowRemoves the mapping of how columns are laid out along the cross axis on the current row for the given breakpoint if it is present.- Specified by:
removeAlignItemsin interfaceResponsiveGridLayout.Row- Parameters:
breakpoint- the breakpoint for which to remove mapping
-
updateAlignItems
protected void updateAlignItems() -
getJustifyContent
Description copied from interface:ResponsiveGridLayout.RowReturns the map that contains information regarding how columns are laid out along the main axis on the current row at a specific breakpoint.Corresponds to the
.justify-content-{breakpoint}-*responsive styles.- Specified by:
getJustifyContentin interfaceResponsiveGridLayout.Row- Returns:
- the map that contains information regarding how columns are laid out along the main axis on the current row at a specific breakpoint
-
setJustifyContent
public void setJustifyContent(Map<ResponsiveGridLayout.Breakpoint, ResponsiveGridLayout.JustifyContent> justifyContent) Description copied from interface:ResponsiveGridLayout.RowSets a new mapping of how columns are laid out along the main axis on the current row with corresponding breakpoints. Overrides previous values.Corresponds to the
.justify-content-{breakpoint}-*responsive styles.- Specified by:
setJustifyContentin interfaceResponsiveGridLayout.Row- Parameters:
justifyContent- the map that contains information regarding how columns are laid out along the main axis on the current row at a specific breakpoint
-
addJustifyContent
public void addJustifyContent(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.JustifyContent justifyContent) Description copied from interface:ResponsiveGridLayout.RowAdds information regarding how columns are laid out along the main axis on the current row at the given breakpoint. If a mapping for the breakpoint already exist, the old value is replaced by the specifiedResponsiveGridLayout.JustifyContentvalue.- Specified by:
addJustifyContentin interfaceResponsiveGridLayout.Row- Parameters:
breakpoint- the breakpoint with which the specifiedResponsiveGridLayout.AlignItemsvalue is to be associatedjustifyContent- theResponsiveGridLayout.JustifyContentvalue to be associated with the specified breakpoint- See Also:
-
removeJustifyContent
Description copied from interface:ResponsiveGridLayout.RowRemoves the mapping of how columns are laid out along the main axis on the current row for the given breakpoint if it is present.- Specified by:
removeJustifyContentin interfaceResponsiveGridLayout.Row- Parameters:
breakpoint- the breakpoint for which to remove mapping
-
updateJustifyContent
protected void updateJustifyContent()
-