Package io.jmix.ui.component
Class ResponsiveGridLayout.ColumnsValue
java.lang.Object
io.jmix.ui.component.ResponsiveGridLayout.ColumnsValue
- Enclosing interface:
- ResponsiveGridLayout
Class containing information about logical columns number that a column occupies.
Also contains pre-instantiated constants for the special values.
Corresponds to the .col-*
styles.
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
The instance ofResponsiveGridLayout.ColumnsValue
that represents a special value 'auto'.protected Integer
The instance ofResponsiveGridLayout.ColumnsValue
that represents the case when no explicit columns value is defined. -
Constructor Summary
ModifierConstructorDescriptionColumnsValue
(boolean auto) ColumnsValue
(Integer cols) protected
ColumnsValue
(Integer cols, boolean auto) -
Method Summary
-
Field Details
-
DEFAULT
The instance ofResponsiveGridLayout.ColumnsValue
that represents the case when no explicit columns value is defined. This means that the equal-width columns will be created.Corresponds to the
.col
style. -
AUTO
The instance ofResponsiveGridLayout.ColumnsValue
that represents a special value 'auto'. This means that columns with this value will have width based on the natural width of their content.Corresponds to the
.col-auto
style. -
cols
-
auto
protected boolean auto
-
-
Constructor Details
-
ColumnsValue
-
ColumnsValue
public ColumnsValue(boolean auto) -
ColumnsValue
-
-
Method Details
-
columns
-
getColumns
- Returns:
- the number of logical column that represents a column width
or
null
if not defined
-
isAuto
public boolean isAuto()- Returns:
- whether column width must be based on the natural width of its content
-
equals
-
hashCode
public int hashCode()
-