public enum ColumnsMode extends java.lang.Enum<ColumnsMode>
Enum Constant and Description |
---|
ONE_COLUMN |
TWO_COLUMNS |
Modifier and Type | Field and Description |
---|---|
protected int |
columnsCount |
Modifier and Type | Method and Description |
---|---|
static ColumnsMode |
fromColumnsCount(int count) |
int |
getColumnsCount() |
static ColumnsMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ColumnsMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColumnsMode ONE_COLUMN
public static final ColumnsMode TWO_COLUMNS
public static ColumnsMode[] values()
for (ColumnsMode c : ColumnsMode.values()) System.out.println(c);
public static ColumnsMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getColumnsCount()
@Nullable public static ColumnsMode fromColumnsCount(int count)
count
- number of columns