pl.mbdev.openstage
Enum IppTextBox.Constraint

java.lang.Object
  extended by java.lang.Enum<IppTextBox.Constraint>
      extended by pl.mbdev.openstage.IppTextBox.Constraint
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IppTextBox.Constraint>
Enclosing class:
IppTextBox

public static enum IppTextBox.Constraint
extends java.lang.Enum<IppTextBox.Constraint>

Defines kinds of IppTextBox input.

Author:
Mateusz Bysiek

Enum Constant Summary
ANY
          No constraints, any character may be entered.
NUMERIC
          Only numbers may be entered.
PASSWORD
          Any character may be entered, but they are all covered with asterisks.
 
Method Summary
static IppTextBox.Constraint valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IppTextBox.Constraint[] 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

ANY

public static final IppTextBox.Constraint ANY
No constraints, any character may be entered.


NUMERIC

public static final IppTextBox.Constraint NUMERIC
Only numbers may be entered.


PASSWORD

public static final IppTextBox.Constraint PASSWORD
Any character may be entered, but they are all covered with asterisks.

Method Detail

values

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

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

valueOf

public static IppTextBox.Constraint 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