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:
java.io.Serializable, java.lang.Comparable<IDataBook.SelectionMode>
Enclosing interface:
IDataBook

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

The IDataBook.SelectionMode specifies which row should be selected after a reload or after the master row has changed.


Enum Constant Summary
CURRENT_ROW
          The selection will be preserved and not changed.
CURRENT_ROW_DESELECTED
          The selection will be preserved and not changed.
CURRENT_ROW_DESELECTED_SETFILTER
          The selection will be preserved and not changed.
CURRENT_ROW_SETFILTER
          The selection will be preserved and not changed.
DESELECTED
          No row will be selected, if there is/was a selected row it will be unselected.
FIRST_ROW
          The first row will be selected.
 
Method Summary
static IDataBook.SelectionMode valueOf(java.lang.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
No row will be selected, if there is/was a selected row it will be unselected.


FIRST_ROW

public static final IDataBook.SelectionMode FIRST_ROW
The first row will be selected.


CURRENT_ROW

public static final IDataBook.SelectionMode CURRENT_ROW
The selection will be preserved and not changed. If that is not possible (for example the 20th row is selected, a new filter is applied which only leaves 15 rows) the first row will be selected.

Note that this might have a performance impact, if for example the 500th row is selected and a new filter is applied, the IDataBook will try to fetch up to the 500th row to reset the selection.


CURRENT_ROW_DESELECTED

public static final IDataBook.SelectionMode CURRENT_ROW_DESELECTED
The selection will be preserved and not changed. If that is not possible (for example the 20th row is selected, a new filter is applied which only leaves 15 rows) no row will be selected (removing the selection if needed).

Note that this might have a performance impact, if for example the 500th row is selected and a new filter is applied, the IDataBook will try to fetch up to the 500th row to reset the selection.


CURRENT_ROW_SETFILTER

public static final IDataBook.SelectionMode CURRENT_ROW_SETFILTER
The selection will be preserved and not changed. If that is not possible (for example the 20th row is selected, a new filter is applied which only leaves 15 rows) the first row will be selected.

Note that this might have a performance impact, if for example the 500th row is selected and a new filter is applied, the IDataBook will try to fetch up to the 500th row to reset the selection.


CURRENT_ROW_DESELECTED_SETFILTER

public static final IDataBook.SelectionMode CURRENT_ROW_DESELECTED_SETFILTER
The selection will be preserved and not changed. If that is not possible (for example the 20th row is selected, a new filter is applied which only leaves 15 rows) no row will be selected (removing the selection if needed).

Note that this might have a performance impact, if for example the 500th row is selected and a new filter is applied, the IDataBook will try to fetch up to the 500th row to reset the selection.

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(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 © 2009 SIB Visions GmbH. All Rights Reserved.