public static class ResponsiveGridLayout.ColumnsValue
extends java.lang.Object
Corresponds to the .col-*
styles.
Modifier and Type | Field and Description |
---|---|
protected boolean |
auto |
static ResponsiveGridLayout.ColumnsValue |
AUTO
The instance of
ResponsiveGridLayout.ColumnsValue that represents a special value 'auto'. |
protected java.lang.Integer |
cols |
static ResponsiveGridLayout.ColumnsValue |
DEFAULT
The instance of
ResponsiveGridLayout.ColumnsValue that represents the case when
no explicit columns value is defined. |
Modifier | Constructor and Description |
---|---|
|
ColumnsValue(boolean auto) |
|
ColumnsValue(java.lang.Integer cols) |
protected |
ColumnsValue(java.lang.Integer cols,
boolean auto) |
Modifier and Type | Method and Description |
---|---|
static ResponsiveGridLayout.ColumnsValue |
columns(java.lang.Integer cols) |
boolean |
equals(java.lang.Object o) |
java.lang.Integer |
getColumns() |
int |
hashCode() |
boolean |
isAuto() |
public static ResponsiveGridLayout.ColumnsValue DEFAULT
ResponsiveGridLayout.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.
public static ResponsiveGridLayout.ColumnsValue AUTO
ResponsiveGridLayout.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.
protected java.lang.Integer cols
protected boolean auto
public ColumnsValue(@Nullable java.lang.Integer cols)
public ColumnsValue(boolean auto)
protected ColumnsValue(@Nullable java.lang.Integer cols, boolean auto)
public static ResponsiveGridLayout.ColumnsValue columns(@Nullable java.lang.Integer cols)
@Nullable public java.lang.Integer getColumns()
null
if not definedpublic boolean isAuto()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object