javax.rad.model
Enum IDataBook.SelectionMode

java.lang.Object
  extended by java.lang.Enum<IDataBook.SelectionMode>
      extended by javax.rad.model.IDataBook.SelectionMode
All Implemented Interfaces:
Serializable, Comparable<IDataBook.SelectionMode>
Enclosing interface:
IDataBook

public static enum IDataBook.SelectionMode
extends Enum<IDataBook.SelectionMode>

The IDataBook selection modes specify which row should be selected after reload or after the master row has changed.


Enum Constant Summary
CURRENT_ROW
          means, that after reload or change of the master row, that the current row (last selected row) or if not possible the first row (0) will be selected.
DESELECTED
          means, that after reload or change of the master row, that no row (-1) will be selected.
FIRST_ROW
          means, that after reload or change of the master row, that the first row (0) will be selected.
 
Method Summary
static IDataBook.SelectionMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IDataBook.SelectionMode[] 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

DESELECTED

public static final IDataBook.SelectionMode DESELECTED
means, that after reload or change of the master row, that no row (-1) will be selected.


FIRST_ROW

public static final IDataBook.SelectionMode FIRST_ROW
means, that after reload or change of the master row, that the first row (0) will be selected.


CURRENT_ROW

public static final IDataBook.SelectionMode CURRENT_ROW
means, that after reload or change of the master row, that the current row (last selected row) or if not possible the first row (0) will be selected.

Method Detail

values

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

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

valueOf

public static IDataBook.SelectionMode 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 © 2009 SIB Visions GmbH. All Rights Reserved.