Package io.jmix.ui.component.impl
Class ResponsiveGridLayoutImpl.ColumnImpl
java.lang.Object
io.jmix.ui.component.impl.ResponsiveGridLayoutImpl.AbstractGridElementImpl<JmixResponsiveGridLayout.Column>
io.jmix.ui.component.impl.ResponsiveGridLayoutImpl.ColumnImpl
- All Implemented Interfaces:
ResponsiveGridLayout.Column
,ResponsiveGridLayout.GridElement
- Enclosing class:
- ResponsiveGridLayoutImpl
protected static class ResponsiveGridLayoutImpl.ColumnImpl
extends ResponsiveGridLayoutImpl.AbstractGridElementImpl<JmixResponsiveGridLayout.Column>
implements ResponsiveGridLayout.Column
-
Field Summary
Fields inherited from class io.jmix.ui.component.impl.ResponsiveGridLayoutImpl.AbstractGridElementImpl
gridElement, id, owner
-
Constructor Summary
ConstructorDescriptionColumnImpl
(JmixResponsiveGridLayout.Column column, ResponsiveGridLayoutImpl owner) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAlignSelf
(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.AlignSelf alignSelf) Adds information regarding how this column is laid out along the cross axis at the given breakpoint.void
addColumns
(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.ColumnsValue columnsValue) Adds information regarding the logical columns number that this column occupies at the given breakpoint.void
addOffset
(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.OffsetValue offsetValue) Adds information regarding offset of this column at the given breakpoint.void
addOrder
(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.OrderValue orderValue) Adds information regarding the visual order of this column at the given breakpoint.protected void
assignFrame
(Component component) 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.void
removeAlignSelf
(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.void
removeColumns
(ResponsiveGridLayout.Breakpoint breakpoint) Removes the mapping of the logical columns number that this column occupies for the given breakpoint if it is present.protected void
void
removeOffset
(ResponsiveGridLayout.Breakpoint breakpoint) Removes the mapping of offset of this column for the given breakpoint if it is present.void
removeOrder
(ResponsiveGridLayout.Breakpoint breakpoint) Removes the mapping of the visual order of this column for the given breakpoint if it is present.void
Sets a new mapping of how this column is laid out along the cross axis with corresponding breakpoints.void
Sets a new mapping of the logical columns number that this column occupies with corresponding breakpoints.void
setComponent
(Component component) Sets a component to be rendered within this column.void
Sets a new mapping of offset of this column with corresponding breakpoints.void
Sets a new mapping of the visual order of this column with corresponding breakpoints.protected void
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.Column
setAlignSelf, setAlignSelf, setColumns, setColumns, setOffset, setOffset, setOrder, setOrder
Methods inherited from interface io.jmix.ui.component.ResponsiveGridLayout.GridElement
addStyleName, getId, getStyleName, removeStyleName, setId, setStyleName
-
Field Details
-
component
-
columns
-
aligns
-
orders
-
offsets
-
-
Constructor Details
-
ColumnImpl
-
-
Method Details
-
getComponent
- Specified by:
getComponent
in interfaceResponsiveGridLayout.Column
- Returns:
- a component to be rendered within this column
-
setComponent
Description copied from interface:ResponsiveGridLayout.Column
Sets a component to be rendered within this column.- Specified by:
setComponent
in interfaceResponsiveGridLayout.Column
- Parameters:
component
- a components to set
-
assignFrame
-
removeContentIfPresent
protected void removeContentIfPresent() -
getColumns
Description copied from interface:ResponsiveGridLayout.Column
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.- Specified by:
getColumns
in interfaceResponsiveGridLayout.Column
- Returns:
- the map that contains information regarding the logical columns number that this column occupies at a specific breakpoint
-
setColumns
public void setColumns(Map<ResponsiveGridLayout.Breakpoint, ResponsiveGridLayout.ColumnsValue> columns) Description copied from interface:ResponsiveGridLayout.Column
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.- Specified by:
setColumns
in interfaceResponsiveGridLayout.Column
- Parameters:
columns
- the map that contains information regarding the logical columns number that this column occupies at a specific breakpoint
-
addColumns
public void addColumns(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.ColumnsValue columnsValue) Description copied from interface:ResponsiveGridLayout.Column
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.ColumnsValue
instance.- Specified by:
addColumns
in interfaceResponsiveGridLayout.Column
- Parameters:
breakpoint
- the breakpoint with which the specifiedResponsiveGridLayout.ColumnsValue
instance is to be associatedcolumnsValue
- theResponsiveGridLayout.ColumnsValue
instance to be associated with the specified breakpoint- See Also:
-
removeColumns
Description copied from interface:ResponsiveGridLayout.Column
Removes the mapping of the logical columns number that this column occupies for the given breakpoint if it is present.- Specified by:
removeColumns
in interfaceResponsiveGridLayout.Column
- Parameters:
breakpoint
- the breakpoint for which to remove mapping
-
updateColumns
protected void updateColumns() -
getAlignSelf
Description copied from interface:ResponsiveGridLayout.Column
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.- Specified by:
getAlignSelf
in interfaceResponsiveGridLayout.Column
- Returns:
- the map that contains information regarding how this column is laid out along the cross axis at a specific breakpoint
-
setAlignSelf
public void setAlignSelf(Map<ResponsiveGridLayout.Breakpoint, ResponsiveGridLayout.AlignSelf> aligns) Description copied from interface:ResponsiveGridLayout.Column
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.- Specified by:
setAlignSelf
in interfaceResponsiveGridLayout.Column
- Parameters:
aligns
- the map that contains information regarding how this column is laid out along the cross axis at a specific breakpoint
-
addAlignSelf
public void addAlignSelf(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.AlignSelf alignSelf) Description copied from interface:ResponsiveGridLayout.Column
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.AlignSelf
value.- Specified by:
addAlignSelf
in interfaceResponsiveGridLayout.Column
- Parameters:
breakpoint
- the breakpoint with which the specifiedResponsiveGridLayout.AlignSelf
value is to be associatedalignSelf
- theResponsiveGridLayout.AlignSelf
value to be associated with the specified breakpoint- See Also:
-
removeAlignSelf
Description copied from interface:ResponsiveGridLayout.Column
Removes the mapping of how this column is laid out along the cross axis for the given breakpoint if it is present.- Specified by:
removeAlignSelf
in interfaceResponsiveGridLayout.Column
- Parameters:
breakpoint
- the breakpoint for which to remove mapping
-
updateAlign
protected void updateAlign() -
getOrder
Description copied from interface:ResponsiveGridLayout.Column
Returns the map that contains information regarding the visual order of this column at a specific breakpoint.Corresponds to the
.order-{breakpoint}-*
responsive styles.- Specified by:
getOrder
in interfaceResponsiveGridLayout.Column
- Returns:
- the map that contains information regarding the visual order of this column at a specific breakpoint
-
setOrder
Description copied from interface:ResponsiveGridLayout.Column
Sets a new mapping of the visual order of this column with corresponding breakpoints. Overrides previous values.Corresponds to the
.order-{breakpoint}-*
responsive styles.- Specified by:
setOrder
in interfaceResponsiveGridLayout.Column
- Parameters:
orders
- the map that contains information regarding the visual order of this column at a specific breakpoint
-
addOrder
public void addOrder(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.OrderValue orderValue) Description copied from interface:ResponsiveGridLayout.Column
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.OrderValue
instance.- Specified by:
addOrder
in interfaceResponsiveGridLayout.Column
- Parameters:
breakpoint
- the breakpoint with which the specifiedResponsiveGridLayout.OrderValue
instance is to be associatedorderValue
- theResponsiveGridLayout.OrderValue
instance to be associated with the specified breakpoint- See Also:
-
removeOrder
Description copied from interface:ResponsiveGridLayout.Column
Removes the mapping of the visual order of this column for the given breakpoint if it is present.- Specified by:
removeOrder
in interfaceResponsiveGridLayout.Column
- Parameters:
breakpoint
- the breakpoint for which to remove mapping
-
updateOrder
protected void updateOrder() -
getOffset
Description copied from interface:ResponsiveGridLayout.Column
Returns the map that contains information regarding offset of this column at a specific breakpoint.Corresponds to the
.offset-{breakpoint}-*
responsive styles.- Specified by:
getOffset
in interfaceResponsiveGridLayout.Column
- Returns:
- the map that contains information regarding offset of this column at a specific breakpoint
-
setOffset
public void setOffset(Map<ResponsiveGridLayout.Breakpoint, ResponsiveGridLayout.OffsetValue> offsets) Description copied from interface:ResponsiveGridLayout.Column
Sets a new mapping of offset of this column with corresponding breakpoints. Overrides previous values.Corresponds to the
.offset-{breakpoint}-*
responsive styles.- Specified by:
setOffset
in interfaceResponsiveGridLayout.Column
- Parameters:
offsets
- the map that contains information regarding offset of this column at a specific breakpoint
-
addOffset
public void addOffset(ResponsiveGridLayout.Breakpoint breakpoint, ResponsiveGridLayout.OffsetValue offsetValue) Description copied from interface:ResponsiveGridLayout.Column
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.OffsetValue
instance.- Specified by:
addOffset
in interfaceResponsiveGridLayout.Column
- Parameters:
breakpoint
- the breakpoint with which the specifiedResponsiveGridLayout.OffsetValue
instance is to be associatedoffsetValue
- theResponsiveGridLayout.OffsetValue
instance to be associated with the specified breakpoint- See Also:
-
removeOffset
Description copied from interface:ResponsiveGridLayout.Column
Removes the mapping of offset of this column for the given breakpoint if it is present.- Specified by:
removeOffset
in interfaceResponsiveGridLayout.Column
- Parameters:
breakpoint
- the breakpoint for which to remove mapping
-
updateOffsetValue
protected void updateOffsetValue()
-