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 set sort the current row (last selected row) or if not possible, on set filter or change of master row the first row (0) will be selected.
CURRENT_ROW_DESELECTED
          means, that after reload or set sort the current row (last selected row) or if not possible, on set filter or change of master row no row (-1) will be selected.
CURRENT_ROW_DESELECTED_SETFILTER
          means, that after reload, set sort or on set filter the current row (last selected row) or if not possible or change of master row no row (-1) will be selected.
CURRENT_ROW_SETFILTER
          means, that after reload, set sort or on set filter the current row (last selected row) or if not possible or change of master row the first row (0) will be selected.
DESELECTED
          means, that after reload, set sort, set filter or change of the master row, that no row (-1) will be selected.
FIRST_ROW
          means, that after reload, set sort, set filter 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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DESELECTED

public static final IDataBook.SelectionMode DESELECTED
means, that after reload, set sort, set filter 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, set sort, set filter 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 set sort the current row (last selected row) or if not possible, on set filter or change of master row the first row (0) will be selected.


CURRENT_ROW_DESELECTED

public static final IDataBook.SelectionMode CURRENT_ROW_DESELECTED
means, that after reload or set sort the current row (last selected row) or if not possible, on set filter or change of master row no row (-1) will be selected.


CURRENT_ROW_SETFILTER

public static final IDataBook.SelectionMode CURRENT_ROW_SETFILTER
means, that after reload, set sort or on set filter the current row (last selected row) or if not possible or change of master row the first row (0) will be selected. Be aware that current_row mode on set filter can cause performance issues, as all rows have to be fetched, if the row can not be found.


CURRENT_ROW_DESELECTED_SETFILTER

public static final IDataBook.SelectionMode CURRENT_ROW_DESELECTED_SETFILTER
means, that after reload, set sort or on set filter the current row (last selected row) or if not possible or change of master row no row (-1) will be selected. Be aware that current_row mode on set filter can cause performance issues, as all rows have to be fetched, if the row can not be found.

Method Detail

values

public static final IDataBook.SelectionMode[] values()
Returns an array containing the constants of this enum type, in the order they're 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're 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


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.