net.coderazzi.filters.gui
Enum AutoChoices

java.lang.Object
  extended by java.lang.Enum<AutoChoices>
      extended by net.coderazzi.filters.gui.AutoChoices
All Implemented Interfaces:
Serializable, Comparable<AutoChoices>

public enum AutoChoices
extends Enum<AutoChoices>

Enumeration to define the available auto choices modes on a table filter or on each separated filter editor.


Enum Constant Summary
DISABLED
          No auto choices, any choices must be explicitly inserted.
ENABLED
          Choices extracted from the model, it is guaranteed that the choices include all the model's values, and only those.
ENUMS
          Enumerations and booleans automatically handled.
 
Method Summary
static AutoChoices valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AutoChoices[] 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

DISABLED

public static final AutoChoices DISABLED
No auto choices, any choices must be explicitly inserted.


ENUMS

public static final AutoChoices ENUMS
Enumerations and booleans automatically handled.


ENABLED

public static final AutoChoices ENABLED
Choices extracted from the model, it is guaranteed that the choices include all the model's values, and only those.

Method Detail

values

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

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

valueOf

public static AutoChoices 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