eu.webtoolkit.jwt
Enum WAbstractItemView.EditOption

java.lang.Object
  extended by java.lang.Enum<WAbstractItemView.EditOption>
      extended by eu.webtoolkit.jwt.WAbstractItemView.EditOption
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<WAbstractItemView.EditOption>
Enclosing class:
WAbstractItemView

public static enum WAbstractItemView.EditOption
extends java.lang.Enum<WAbstractItemView.EditOption>

Enumeration that specifies editing options.

See Also:
WAbstractItemView.setEditOptions(EnumSet editOptions)

Enum Constant Summary
LeaveEditorsOpen
          Editors can only be closed using closeEditor().
MultipleEditors
          Allow multiple editors at the same time.
SaveWhenClosed
          Always save the current edit value when closing.
SingleEditor
          Never show more than one active editor.
 
Method Summary
 int getValue()
          Returns the numerical representation of this enum.
static WAbstractItemView.EditOption valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static WAbstractItemView.EditOption[] 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

SingleEditor

public static final WAbstractItemView.EditOption SingleEditor
Never show more than one active editor.


MultipleEditors

public static final WAbstractItemView.EditOption MultipleEditors
Allow multiple editors at the same time.


SaveWhenClosed

public static final WAbstractItemView.EditOption SaveWhenClosed
Always save the current edit value when closing.


LeaveEditorsOpen

public static final WAbstractItemView.EditOption LeaveEditorsOpen
Editors can only be closed using closeEditor().

Method Detail

values

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

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

valueOf

public static WAbstractItemView.EditOption 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

getValue

public int getValue()
Returns the numerical representation of this enum.