Package org.uberfire.preferences.shared
Enum PropertyFormType
- java.lang.Object
-
- java.lang.Enum<PropertyFormType>
-
- org.uberfire.preferences.shared.PropertyFormType
-
- All Implemented Interfaces:
Serializable,Comparable<PropertyFormType>
public enum PropertyFormType extends Enum<PropertyFormType>
Enum used to define a property type for default form generation purposes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEANCOLORCOMBONATURAL_NUMBERSECRET_TEXTTEXT
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ObjectfromString(String stringValue)abstract StringtoString(Object realValue)static PropertyFormTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PropertyFormType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT
public static final PropertyFormType TEXT
-
BOOLEAN
public static final PropertyFormType BOOLEAN
-
NATURAL_NUMBER
public static final PropertyFormType NATURAL_NUMBER
-
SECRET_TEXT
public static final PropertyFormType SECRET_TEXT
-
COLOR
public static final PropertyFormType COLOR
-
COMBO
public static final PropertyFormType COMBO
-
-
Method Detail
-
values
public static PropertyFormType[] 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 (PropertyFormType c : PropertyFormType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropertyFormType 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 nameNullPointerException- if the argument is null
-
-