com.vaadin.ui
Enum Table.ColumnHeaderMode

java.lang.Object
  extended by java.lang.Enum<Table.ColumnHeaderMode>
      extended by 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
EXPLICIT
          Column headers are explicitly specified with Table.setColumnHeaders(String[]).
EXPLICIT_DEFAULTS_ID
          Column headers are explicitly specified with Table.setColumnHeaders(String[]).
HIDDEN
          Column headers are hidden.
ID
          Property ID:s are used as column headers.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 with Table.setColumnHeaders(String[]).


EXPLICIT_DEFAULTS_ID

public static final Table.ColumnHeaderMode EXPLICIT_DEFAULTS_ID
Column headers are explicitly specified with Table.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 name
NullPointerException - if the argument is null


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.