Package io.jmix.ui.component
Interface ResponsiveGridLayout.Column
- All Superinterfaces:
ResponsiveGridLayout.GridElement
- All Known Implementing Classes:
ResponsiveGridLayoutImpl.ColumnImpl
- Enclosing interface:
- ResponsiveGridLayout
Interface defining a grid column. It's a wrapper over grid's content.
Corresponds to the <div class="col"> element.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlignSelf(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.AlignSelf alignSelf) Adds information regarding how this column is laid out along the cross axis at the given breakpoint.voidaddColumns(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.ColumnsValue columnsValue) Adds information regarding the logical columns number that this column occupies at the given breakpoint.voidaddOffset(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.OffsetValue offsetValue) Adds information regarding offset of this column at the given breakpoint.voidaddOrder(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.OrderValue orderValue) Adds information regarding the visual order of this column at the given breakpoint.Returns the map that contains information regarding how this column is laid out along the cross axis at a specific breakpoint.Returns the map that contains information regarding the logical columns number that this column occupies at a specific breakpoint.Returns the map that contains information regarding offset of this column at a specific breakpoint.getOrder()Returns the map that contains information regarding the visual order of this column at a specific breakpoint.voidremoveAlignSelf(ResponsiveGridLayout.Breakpoint breakpoint) Removes the mapping of how this column is laid out along the cross axis for the given breakpoint if it is present.voidremoveColumns(ResponsiveGridLayout.Breakpoint breakpoint) Removes the mapping of the logical columns number that this column occupies for the given breakpoint if it is present.voidremoveOffset(ResponsiveGridLayout.Breakpoint breakpoint) Removes the mapping of offset of this column for the given breakpoint if it is present.voidremoveOrder(ResponsiveGridLayout.Breakpoint breakpoint) Removes the mapping of the visual order of this column for the given breakpoint if it is present.default voidsetAlignSelf(ResponsiveGridLayout.AlignSelf alignSelf) Sets a new mapping of how this column is laid out along the cross axis at all breakpoints, i.e.default voidsetAlignSelf(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.AlignSelf alignSelf) Sets a new mapping of how this column is laid out along the cross axis with the specified breakpoint.voidSets a new mapping of how this column is laid out along the cross axis with corresponding breakpoints.default voidsetColumns(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.ColumnsValue columnsValue) Sets a new mapping of the logical columns number that this column occupies with the specified breakpoint.default voidsetColumns(ResponsiveGridLayout.ColumnsValue columnsValue) Sets a new mapping of the logical columns number that this column occupies at all breakpoints, i.e.voidSets a new mapping of the logical columns number that this column occupies with corresponding breakpoints.voidsetComponent(Component component) Sets a component to be rendered within this column.default voidsetOffset(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.OffsetValue offsetValue) Sets a new mapping of offset of this column with the specified breakpoint.default voidsetOffset(ResponsiveGridLayout.OffsetValue offsetValue) Sets a new mapping of offset of this column at all breakpoints, i.e.voidSets a new mapping of offset of this column with corresponding breakpoints.default voidsetOrder(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.OrderValue orderValue) Sets a new mapping of the visual order of this column with the specified breakpoint.default voidsetOrder(ResponsiveGridLayout.OrderValue orderValue) Sets a new mapping of the visual order of this column at all breakpoints, i.e.voidSets a new mapping of the visual order of this column with corresponding breakpoints.Methods inherited from interface io.jmix.ui.component.ResponsiveGridLayout.GridElement
addStyleName, getId, getStyleName, removeStyleName, setId, setStyleName
-
Method Details
-
getComponent
Component getComponent()- Returns:
- a component to be rendered within this column
-
setComponent
Sets a component to be rendered within this column.- Parameters:
component- a components to set
-
getColumns
Returns the map that contains information regarding the logical columns number that this column occupies at a specific breakpoint.Corresponds to the
.col-{breakpoint}-*responsive styles.- Returns:
- the map that contains information regarding the logical columns number that this column occupies at a specific breakpoint
-
setColumns
Sets a new mapping of the logical columns number that this column occupies at all breakpoints, i.e. starting fromResponsiveGridLayout.Breakpoint.XS. Clears previous values and creates a map with a single value.- Parameters:
columnsValue- theResponsiveGridLayout.ColumnsValueinstance to set for all breakpoints- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen- See Also:
-
setColumns
default void setColumns(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.ColumnsValue columnsValue) Sets a new mapping of the logical columns number that this column occupies with the specified breakpoint. Clears previous values and creates a map with a single value.- Parameters:
breakpoint- the breakpoint to start fromcolumnsValue- theResponsiveGridLayout.ColumnsValueinstance to set- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen- See Also:
-
setColumns
Sets a new mapping of the logical columns number that this column occupies with corresponding breakpoints. Overrides previous values.Corresponds to the
.col-{breakpoint}-*responsive styles.- Parameters:
columns- the map that contains information regarding the logical columns number that this column occupies at a specific breakpoint- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen
-
addColumns
void addColumns(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.ColumnsValue columnsValue) Adds information regarding the logical columns number that this column occupies at the given breakpoint. If a mapping for the breakpoint already exist, the old value is replaced by the specifiedResponsiveGridLayout.ColumnsValueinstance.- Parameters:
breakpoint- the breakpoint with which the specifiedResponsiveGridLayout.ColumnsValueinstance is to be associatedcolumnsValue- theResponsiveGridLayout.ColumnsValueinstance to be associated with the specified breakpoint- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen- See Also:
-
removeColumns
Removes the mapping of the logical columns number that this column occupies for the given breakpoint if it is present.- Parameters:
breakpoint- the breakpoint for which to remove mapping- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen
-
getAlignSelf
Map<ResponsiveGridLayout.Breakpoint,ResponsiveGridLayout.AlignSelf> getAlignSelf()Returns the map that contains information regarding how this column is laid out along the cross axis at a specific breakpoint.Corresponds to the
.align-self-{breakpoint}-*responsive styles.- Returns:
- the map that contains information regarding how this column is laid out along the cross axis at a specific breakpoint
-
setAlignSelf
@StudioProperty(type=ENUMERATION, options={"AUTO","BASELINE","CENTER","END","START","STRETCH"}) default void setAlignSelf(ResponsiveGridLayout.AlignSelf alignSelf) Sets a new mapping of how this column is laid out along the cross axis at all breakpoints, i.e. starting fromResponsiveGridLayout.Breakpoint.XS. Clears previous values and creates a map with a single value.- Parameters:
alignSelf- theResponsiveGridLayout.AlignSelfvalue to set for all breakpoints- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen- See Also:
-
setAlignSelf
default void setAlignSelf(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.AlignSelf alignSelf) Sets a new mapping of how this column is laid out along the cross axis with the specified breakpoint. Clears previous values and creates a map with a single value.- Parameters:
breakpoint- the breakpoint to start fromalignSelf- theResponsiveGridLayout.AlignSelfvalue to set- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen- See Also:
-
setAlignSelf
Sets a new mapping of how this column is laid out along the cross axis with corresponding breakpoints. Overrides previous values.Corresponds to the
.align-self-{breakpoint}-*responsive styles.- Parameters:
aligns- the map that contains information regarding how this column is laid out along the cross axis at a specific breakpoint- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen
-
addAlignSelf
void addAlignSelf(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.AlignSelf alignSelf) Adds information regarding how this column is laid out along the cross axis at the given breakpoint. If a mapping for the breakpoint already exist, the old value is replaced by the specifiedResponsiveGridLayout.AlignSelfvalue.- Parameters:
breakpoint- the breakpoint with which the specifiedResponsiveGridLayout.AlignSelfvalue is to be associatedalignSelf- theResponsiveGridLayout.AlignSelfvalue to be associated with the specified breakpoint- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen- See Also:
-
removeAlignSelf
Removes the mapping of how this column is laid out along the cross axis for the given breakpoint if it is present.- Parameters:
breakpoint- the breakpoint for which to remove mapping- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen
-
getOrder
Returns the map that contains information regarding the visual order of this column at a specific breakpoint.Corresponds to the
.order-{breakpoint}-*responsive styles.- Returns:
- the map that contains information regarding the visual order of this column at a specific breakpoint
-
setOrder
@StudioProperty(name="order", type=STRING, options={"FIRST","LAST"}) default void setOrder(ResponsiveGridLayout.OrderValue orderValue) Sets a new mapping of the visual order of this column at all breakpoints, i.e. starting fromResponsiveGridLayout.Breakpoint.XS. Clears previous values and creates a map with a single value.- Parameters:
orderValue- theResponsiveGridLayout.OrderValueinstance to set for all breakpoints- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen- See Also:
-
setOrder
default void setOrder(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.OrderValue orderValue) Sets a new mapping of the visual order of this column with the specified breakpoint. Clears previous values and creates a map with a single value.- Parameters:
breakpoint- the breakpoint to start fromorderValue- theResponsiveGridLayout.OrderValueinstance to set- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen- See Also:
-
setOrder
Sets a new mapping of the visual order of this column with corresponding breakpoints. Overrides previous values.Corresponds to the
.order-{breakpoint}-*responsive styles.- Parameters:
orders- the map that contains information regarding the visual order of this column at a specific breakpoint- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen
-
addOrder
void addOrder(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.OrderValue orderValue) Adds information regarding the visual order of this column at the given breakpoint. If a mapping for the breakpoint already exist, the old value is replaced by the specifiedResponsiveGridLayout.OrderValueinstance.- Parameters:
breakpoint- the breakpoint with which the specifiedResponsiveGridLayout.OrderValueinstance is to be associatedorderValue- theResponsiveGridLayout.OrderValueinstance to be associated with the specified breakpoint- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen- See Also:
-
removeOrder
Removes the mapping of the visual order of this column for the given breakpoint if it is present.- Parameters:
breakpoint- the breakpoint for which to remove mapping- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen
-
getOffset
Returns the map that contains information regarding offset of this column at a specific breakpoint.Corresponds to the
.offset-{breakpoint}-*responsive styles.- Returns:
- the map that contains information regarding offset of this column at a specific breakpoint
-
setOffset
@StudioProperty(name="offset", type=INTEGER) default void setOffset(ResponsiveGridLayout.OffsetValue offsetValue) Sets a new mapping of offset of this column at all breakpoints, i.e. starting fromResponsiveGridLayout.Breakpoint.XS. Clears previous values and creates a map with a single value.- Parameters:
offsetValue- theResponsiveGridLayout.OffsetValueinstance to set for all breakpoints- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen- See Also:
-
setOffset
default void setOffset(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.OffsetValue offsetValue) Sets a new mapping of offset of this column with the specified breakpoint. Clears previous values and creates a map with a single value.- Parameters:
breakpoint- the breakpoint to start fromoffsetValue- theResponsiveGridLayout.OffsetValueinstance to set- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen- See Also:
-
setOffset
Sets a new mapping of offset of this column with corresponding breakpoints. Overrides previous values.Corresponds to the
.offset-{breakpoint}-*responsive styles.- Parameters:
offsets- the map that contains information regarding offset of this column at a specific breakpoint- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen
-
addOffset
void addOffset(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.OffsetValue offsetValue) Adds information regarding offset of this column at the given breakpoint. If a mapping for the breakpoint already exist, the old value is replaced by the specifiedResponsiveGridLayout.OffsetValueinstance.- Parameters:
breakpoint- the breakpoint with which the specifiedResponsiveGridLayout.OffsetValueinstance is to be associatedoffsetValue- theResponsiveGridLayout.OffsetValueinstance to be associated with the specified breakpoint- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen- See Also:
-
removeOffset
Removes the mapping of offset of this column for the given breakpoint if it is present.- Parameters:
breakpoint- the breakpoint for which to remove mapping- Throws:
IllegalStateException- if parent responsive grid layout has been shown on a screen
-