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
FieldsModifier and TypeFieldDescriptionprotected booleanThe instance ofResponsiveGridLayout.ColumnsValuethat represents a special value 'auto'.protected IntegerThe instance ofResponsiveGridLayout.ColumnsValuethat represents the case when no explicit columns value is defined. - 
Constructor Summary
ConstructorsModifierConstructorDescriptionColumnsValue(boolean auto) ColumnsValue(Integer cols) protectedColumnsValue(Integer cols, boolean auto)  - 
Method Summary
 
- 
Field Details
- 
DEFAULT
The instance ofResponsiveGridLayout.ColumnsValuethat represents the case when no explicit columns value is defined. This means that the equal-width columns will be created.Corresponds to the
.colstyle. - 
AUTO
The instance ofResponsiveGridLayout.ColumnsValuethat 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-autostyle. - 
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 
nullif 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() 
 -