com.vaadin.shared.ui.grid
Enum GridState.SharedSelectionMode

java.lang.Object
  extended by java.lang.Enum<GridState.SharedSelectionMode>
      extended by com.vaadin.shared.ui.grid.GridState.SharedSelectionMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GridState.SharedSelectionMode>
Enclosing class:
GridState

public static enum GridState.SharedSelectionMode
extends java.lang.Enum<GridState.SharedSelectionMode>

A description of which of the three bundled SelectionModels is currently in use.

Used as a data transfer object instead of the client/server ones, because they don't know about each others classes.

See Also:
com.vaadin.ui.components.grid.Grid.SelectionMode, com.vaadin.client.ui.grid.Grid.SelectionMode

Enum Constant Summary
MULTI
          Representation of a multiselection mode
NONE
          Representation of a no-selection mode
SINGLE
          Representation of a single selection mode
 
Method Summary
static GridState.SharedSelectionMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GridState.SharedSelectionMode[] 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

SINGLE

public static final GridState.SharedSelectionMode SINGLE
Representation of a single selection mode

See Also:
com.vaadin.ui.components.grid.Grid.SelectionMode#SINGLE, com.vaadin.client.ui.grid.Grid.SelectionMode#SINGLE

MULTI

public static final GridState.SharedSelectionMode MULTI
Representation of a multiselection mode

See Also:
com.vaadin.ui.components.grid.Grid.SelectionMode#MULTI, com.vaadin.client.ui.grid.Grid.SelectionMode#MULTI

NONE

public static final GridState.SharedSelectionMode NONE
Representation of a no-selection mode

See Also:
com.vaadin.ui.components.grid.Grid.SelectionMode#NONE, com.vaadin.client.ui.grid.Grid.SelectionMode#NONE
Method Detail

values

public static GridState.SharedSelectionMode[] 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 (GridState.SharedSelectionMode c : GridState.SharedSelectionMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static GridState.SharedSelectionMode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


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