Package com.vaadin.ui
Enum Table.ColumnHeaderMode
- java.lang.Object
-
- java.lang.Enum<Table.ColumnHeaderMode>
-
- com.vaadin.ui.Table.ColumnHeaderMode
-
- All Implemented Interfaces:
Serializable
,Comparable<Table.ColumnHeaderMode>
- Enclosing class:
- Table
public static enum Table.ColumnHeaderMode extends Enum<Table.ColumnHeaderMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPLICIT
Column headers are explicitly specified withTable.setColumnHeaders(String[])
.EXPLICIT_DEFAULTS_ID
Column headers are explicitly specified withTable.setColumnHeaders(String[])
.HIDDEN
Column headers are hidden.ID
Property ID:s are used as column headers.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Table.ColumnHeaderMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static Table.ColumnHeaderMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HIDDEN
public static final Table.ColumnHeaderMode HIDDEN
Column headers are hidden.
-
ID
public static final Table.ColumnHeaderMode ID
Property ID:s are used as column headers.
-
EXPLICIT
public static final Table.ColumnHeaderMode EXPLICIT
Column headers are explicitly specified withTable.setColumnHeaders(String[])
.
-
EXPLICIT_DEFAULTS_ID
public static final Table.ColumnHeaderMode EXPLICIT_DEFAULTS_ID
Column headers are explicitly specified withTable.setColumnHeaders(String[])
. If a header is not specified for a given property, its property id is used instead.This is the default behavior.
-
-
Method Detail
-
values
public static Table.ColumnHeaderMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Table.ColumnHeaderMode c : Table.ColumnHeaderMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Table.ColumnHeaderMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-