Package io.jmix.ui.component
Class ResponsiveGridLayout.OrderValue
java.lang.Object
io.jmix.ui.component.ResponsiveGridLayout.OrderValue
- Enclosing interface:
- ResponsiveGridLayout
Class containing information for controlling the visual order of a column.
Also contains pre-instantiated constants for the special values.
Corresponds to the .order-*
styles.
-
Field Summary
Modifier and TypeFieldDescriptionThe instance ofResponsiveGridLayout.OrderValue
that represents a special order value 'first'.The instance ofResponsiveGridLayout.OrderValue
that represents a special order value 'last'.protected Integer
protected String
-
Constructor Summary
ModifierConstructorDescriptionOrderValue
(int order) protected
OrderValue
(Integer order, String value) OrderValue
(String value) -
Method Summary
Modifier and TypeMethodDescriptioncolumns
(int cols) Creates an instance ofResponsiveGridLayout.OrderValue
with the given visual order value.boolean
getOrder()
getValue()
int
hashCode()
-
Field Details
-
FIRST
The instance ofResponsiveGridLayout.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. -
LAST
The instance ofResponsiveGridLayout.OrderValue
that represents a special order value 'last'. Behaves like the order is13
. 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. -
order
-
value
-
-
Constructor Details
-
OrderValue
public OrderValue(int order) -
OrderValue
-
OrderValue
-
-
Method Details
-
columns
Creates an instance ofResponsiveGridLayout.OrderValue
with the given visual order value.- Parameters:
cols
- the visual order value to set- Returns:
- an instance of
ResponsiveGridLayout.OffsetValue
with the given visual order value
-
getOrder
- Returns:
- the visual order value or
null
if not defined
-
getValue
- Returns:
- the visual order value represented by a special word
or
null
if not defined
-
equals
-
hashCode
public int hashCode()
-