public static class ResponsiveGridLayout.OrderValue
extends java.lang.Object
Corresponds to the .order-*
styles.
Modifier and Type | Field and Description |
---|---|
static ResponsiveGridLayout.OrderValue |
FIRST
The instance of
ResponsiveGridLayout.OrderValue that represents a special order value 'first'. |
static ResponsiveGridLayout.OrderValue |
LAST
The instance of
ResponsiveGridLayout.OrderValue that represents a special order value 'last'. |
protected java.lang.Integer |
order |
protected java.lang.String |
value |
Modifier | Constructor and Description |
---|---|
|
OrderValue(int order) |
protected |
OrderValue(java.lang.Integer order,
java.lang.String value) |
|
OrderValue(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
static ResponsiveGridLayout.OrderValue |
columns(int cols)
Creates an instance of
ResponsiveGridLayout.OrderValue with the given visual order value. |
boolean |
equals(java.lang.Object o) |
java.lang.Integer |
getOrder() |
java.lang.String |
getValue() |
int |
hashCode() |
public static ResponsiveGridLayout.OrderValue FIRST
ResponsiveGridLayout.OrderValue
that represents a special order value 'first'.
Behaves like the order is -1
. This means that a column with this order
value will be placed at the very first position even if there are columns with order 0.
Corresponds to the .order-first
style.
public static ResponsiveGridLayout.OrderValue LAST
ResponsiveGridLayout.OrderValue
that represents a special order value 'last'.
Behaves like the order is 13
. This means that a column with this order
value will be placed at the very last position even if there are columns with order 12.
Corresponds to the .order-last
style.
protected java.lang.Integer order
protected java.lang.String value
public OrderValue(int order)
public OrderValue(java.lang.String value)
protected OrderValue(@Nullable java.lang.Integer order, @Nullable java.lang.String value)
public static ResponsiveGridLayout.OrderValue columns(int cols)
ResponsiveGridLayout.OrderValue
with the given visual order value.cols
- the visual order value to setResponsiveGridLayout.OffsetValue
with the given visual order value@Nullable public java.lang.Integer getOrder()
null
if not defined@Nullable public java.lang.String getValue()
null
if not definedpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object