Class ResponsiveGridLayoutImpl.RowImpl
- All Implemented Interfaces:
ResponsiveGridLayout.GridElement
,ResponsiveGridLayout.Row
- Enclosing class:
- ResponsiveGridLayoutImpl
-
Field Summary
Fields inherited from class io.jmix.ui.component.impl.ResponsiveGridLayoutImpl.AbstractGridElementImpl
gridElement, id, owner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Creates a newResponsiveGridLayout.Column
and adds it to this row.addColumn
(int index) Creates a newResponsiveGridLayout.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.Returns the map that contains information regarding how columns are laid out along the cross axis on the current row at a specific breakpoint.float
Returns 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.boolean
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
Removes all columns from this row.void
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
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
Sets the height of the component using String presentation.void
setJustifyContent
(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
(Map<ResponsiveGridLayout.Breakpoint, ResponsiveGridLayout.RowColumnsValue> columnsValue) Sets a new mapping of the number of columns in the row with corresponding breakpoints.protected void
protected void
protected void
Methods inherited from class io.jmix.ui.component.impl.ResponsiveGridLayoutImpl.AbstractGridElementImpl
addStyleName, checkInitializedState, getId, getOwner, getStyleName, getVaadinGridElement, removeStyleName, setId, setStyleName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.component.ResponsiveGridLayout.GridElement
addStyleName, getId, getStyleName, removeStyleName, setId, setStyleName
Methods 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.Row
Creates a newResponsiveGridLayout.Column
and adds it to this row.- Specified by:
addColumn
in interfaceResponsiveGridLayout.Row
- Returns:
- the created column
-
addColumn
Description copied from interface:ResponsiveGridLayout.Row
Creates a newResponsiveGridLayout.Column
and adds it to the given position in this row.- Specified by:
addColumn
in 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.Row
Removes the given column from this row.- Specified by:
removeColumn
in interfaceResponsiveGridLayout.Row
- Parameters:
column
- the column to be removed
-
removeAllColumns
public void removeAllColumns()Description copied from interface:ResponsiveGridLayout.Row
Removes all columns from this row.- Specified by:
removeAllColumns
in interfaceResponsiveGridLayout.Row
-
getColumns
- Specified by:
getColumns
in interfaceResponsiveGridLayout.Row
- Returns:
- a list of contained columns
-
isGuttersEnabled
public boolean isGuttersEnabled()- Specified by:
isGuttersEnabled
in interfaceResponsiveGridLayout.Row
- Returns:
- whether gutters are enabled
-
setGuttersEnabled
public void setGuttersEnabled(boolean guttersEnabled) Description copied from interface:ResponsiveGridLayout.Row
Sets whether gutters are enabled. Gutters are enabled by default.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.- Specified by:
setGuttersEnabled
in 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.Row
Returns the height of this row. A negative number implies unspecified size.- Specified by:
getHeight
in interfaceResponsiveGridLayout.Row
- Returns:
- height of the row in units specified by {
ResponsiveGridLayout.Row.getHeightSizeUnit()
} property.
-
getHeightSizeUnit
Description copied from interface:ResponsiveGridLayout.Row
Returns the height property units.- Specified by:
getHeightSizeUnit
in interfaceResponsiveGridLayout.Row
- Returns:
- units used in height property.
-
setHeight
Description copied from interface:ResponsiveGridLayout.Row
Sets 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:
setHeight
in interfaceResponsiveGridLayout.Row
- Parameters:
height
- the height to be set
-
getRowColumns
Description copied from interface:ResponsiveGridLayout.Row
Returns 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:
getRowColumns
in 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.Row
Sets 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:
setRowColumns
in 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.Row
Adds 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.RowColumnsValue
instance.- Specified by:
addRowColumns
in interfaceResponsiveGridLayout.Row
- Parameters:
breakpoint
- the breakpoint with which the specifiedResponsiveGridLayout.RowColumnsValue
instance is to be associatedcolumnsValue
- theResponsiveGridLayout.RowColumnsValue
instance to be associated with the specified breakpoint- See Also:
-
removeRowColumns
Description copied from interface:ResponsiveGridLayout.Row
Removes the mapping of the number of columns in the row for the given breakpoint if it is present.- Specified by:
removeRowColumns
in interfaceResponsiveGridLayout.Row
- Parameters:
breakpoint
- the breakpoint for which to remove mapping
-
updateRowColumnsValue
protected void updateRowColumnsValue() -
getAlignItems
Description copied from interface:ResponsiveGridLayout.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.Corresponds to the
.align-items-{breakpoint}-*
responsive styles.- Specified by:
getAlignItems
in 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.Row
Sets 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:
setAlignItems
in 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.Row
Adds 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.AlignItems
value.- Specified by:
addAlignItems
in interfaceResponsiveGridLayout.Row
- Parameters:
breakpoint
- the breakpoint with which the specifiedResponsiveGridLayout.AlignItems
value is to be associatedalignItems
- theResponsiveGridLayout.AlignItems
value to be associated with the specified breakpoint- See Also:
-
removeAlignItems
Description copied from interface:ResponsiveGridLayout.Row
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.- Specified by:
removeAlignItems
in interfaceResponsiveGridLayout.Row
- Parameters:
breakpoint
- the breakpoint for which to remove mapping
-
updateAlignItems
protected void updateAlignItems() -
getJustifyContent
Description copied from interface:ResponsiveGridLayout.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.Corresponds to the
.justify-content-{breakpoint}-*
responsive styles.- Specified by:
getJustifyContent
in 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.Row
Sets 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:
setJustifyContent
in 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.Row
Adds 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.JustifyContent
value.- Specified by:
addJustifyContent
in interfaceResponsiveGridLayout.Row
- Parameters:
breakpoint
- the breakpoint with which the specifiedResponsiveGridLayout.AlignItems
value is to be associatedjustifyContent
- theResponsiveGridLayout.JustifyContent
value to be associated with the specified breakpoint- See Also:
-
removeJustifyContent
Description copied from interface:ResponsiveGridLayout.Row
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.- Specified by:
removeJustifyContent
in interfaceResponsiveGridLayout.Row
- Parameters:
breakpoint
- the breakpoint for which to remove mapping
-
updateJustifyContent
protected void updateJustifyContent()
-