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
FieldsFields inherited from class io.jmix.ui.component.impl.ResponsiveGridLayoutImpl.AbstractGridElementImpl
gridElement, id, owner -
Constructor Summary
ConstructorsConstructorDescriptionColumnImpl(JmixResponsiveGridLayout.Column column, ResponsiveGridLayoutImpl owner) -
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.protected voidassignFrame(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.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.protected voidvoidremoveOffset(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.voidSets a new mapping of how this column is laid out along the cross axis with corresponding breakpoints.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.voidSets a new mapping of offset of this column with corresponding breakpoints.voidSets a new mapping of the visual order of this column with corresponding breakpoints.protected voidprotected 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.Column
setAlignSelf, setAlignSelf, setColumns, setColumns, setOffset, setOffset, setOrder, setOrderMethods 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:
getComponentin interfaceResponsiveGridLayout.Column- Returns:
- a component to be rendered within this column
-
setComponent
Description copied from interface:ResponsiveGridLayout.ColumnSets a component to be rendered within this column.- Specified by:
setComponentin interfaceResponsiveGridLayout.Column- Parameters:
component- a components to set
-
assignFrame
-
removeContentIfPresent
protected void removeContentIfPresent() -
getColumns
Description copied from interface:ResponsiveGridLayout.ColumnReturns 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:
getColumnsin 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.ColumnSets 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:
setColumnsin 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.ColumnAdds 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.- Specified by:
addColumnsin interfaceResponsiveGridLayout.Column- Parameters:
breakpoint- the breakpoint with which the specifiedResponsiveGridLayout.ColumnsValueinstance is to be associatedcolumnsValue- theResponsiveGridLayout.ColumnsValueinstance to be associated with the specified breakpoint- See Also:
-
removeColumns
Description copied from interface:ResponsiveGridLayout.ColumnRemoves the mapping of the logical columns number that this column occupies for the given breakpoint if it is present.- Specified by:
removeColumnsin interfaceResponsiveGridLayout.Column- Parameters:
breakpoint- the breakpoint for which to remove mapping
-
updateColumns
protected void updateColumns() -
getAlignSelf
Description copied from interface:ResponsiveGridLayout.ColumnReturns 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:
getAlignSelfin 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.ColumnSets 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:
setAlignSelfin 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.ColumnAdds 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.- Specified by:
addAlignSelfin interfaceResponsiveGridLayout.Column- Parameters:
breakpoint- the breakpoint with which the specifiedResponsiveGridLayout.AlignSelfvalue is to be associatedalignSelf- theResponsiveGridLayout.AlignSelfvalue to be associated with the specified breakpoint- See Also:
-
removeAlignSelf
Description copied from interface:ResponsiveGridLayout.ColumnRemoves the mapping of how this column is laid out along the cross axis for the given breakpoint if it is present.- Specified by:
removeAlignSelfin interfaceResponsiveGridLayout.Column- Parameters:
breakpoint- the breakpoint for which to remove mapping
-
updateAlign
protected void updateAlign() -
getOrder
Description copied from interface:ResponsiveGridLayout.ColumnReturns 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:
getOrderin 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.ColumnSets 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:
setOrderin 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.ColumnAdds 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.- Specified by:
addOrderin interfaceResponsiveGridLayout.Column- Parameters:
breakpoint- the breakpoint with which the specifiedResponsiveGridLayout.OrderValueinstance is to be associatedorderValue- theResponsiveGridLayout.OrderValueinstance to be associated with the specified breakpoint- See Also:
-
removeOrder
Description copied from interface:ResponsiveGridLayout.ColumnRemoves the mapping of the visual order of this column for the given breakpoint if it is present.- Specified by:
removeOrderin interfaceResponsiveGridLayout.Column- Parameters:
breakpoint- the breakpoint for which to remove mapping
-
updateOrder
protected void updateOrder() -
getOffset
Description copied from interface:ResponsiveGridLayout.ColumnReturns the map that contains information regarding offset of this column at a specific breakpoint.Corresponds to the
.offset-{breakpoint}-*responsive styles.- Specified by:
getOffsetin 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.ColumnSets a new mapping of offset of this column with corresponding breakpoints. Overrides previous values.Corresponds to the
.offset-{breakpoint}-*responsive styles.- Specified by:
setOffsetin 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.ColumnAdds 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.- Specified by:
addOffsetin interfaceResponsiveGridLayout.Column- Parameters:
breakpoint- the breakpoint with which the specifiedResponsiveGridLayout.OffsetValueinstance is to be associatedoffsetValue- theResponsiveGridLayout.OffsetValueinstance to be associated with the specified breakpoint- See Also:
-
removeOffset
Description copied from interface:ResponsiveGridLayout.ColumnRemoves the mapping of offset of this column for the given breakpoint if it is present.- Specified by:
removeOffsetin interfaceResponsiveGridLayout.Column- Parameters:
breakpoint- the breakpoint for which to remove mapping
-
updateOffsetValue
protected void updateOffsetValue()
-