pl.mbdev.openstage
Enum IppTextField.Constraint

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

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

Narrows the set of possible characters of the IppTextField, and sometimes changes the method by which they are entered.

Author:
Mateusz Bysiek

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


NUMERIC

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


PASSWORD

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


PHONENUMBER

public static final IppTextField.Constraint PHONENUMBER
Phone number can be entered.


URL

public static final IppTextField.Constraint URL
URL can be entered.


EMAILADDR

public static final IppTextField.Constraint EMAILADDR
Email address can be entered.

Method Detail

values

public static IppTextField.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 (IppTextField.Constraint c : IppTextField.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 IppTextField.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