Package org.apache.myfaces.tobago.layout
Enum Measure.Unit
- java.lang.Object
-
- java.lang.Enum<Measure.Unit>
-
- org.apache.myfaces.tobago.layout.Measure.Unit
-
- All Implemented Interfaces:
Serializable
,Comparable<Measure.Unit>
- Enclosing class:
- Measure
public static enum Measure.Unit extends Enum<Measure.Unit>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Measure.Unit
valueOf(String name)
Returns the enum constant of this type with the specified name.static Measure.Unit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EM
public static final Measure.Unit EM
-
PX
public static final Measure.Unit PX
-
EX
public static final Measure.Unit EX
-
PT
public static final Measure.Unit PT
-
CM
public static final Measure.Unit CM
-
MM
public static final Measure.Unit MM
-
IN
public static final Measure.Unit IN
-
PC
public static final Measure.Unit PC
-
CH
public static final Measure.Unit CH
-
REM
public static final Measure.Unit REM
-
VW
public static final Measure.Unit VW
-
VH
public static final Measure.Unit VH
-
VMIN
public static final Measure.Unit VMIN
-
VMAX
public static final Measure.Unit VMAX
-
PERCENT
public static final Measure.Unit PERCENT
-
FR
public static final Measure.Unit FR
-
SEG
public static final Measure.Unit SEG
-
AUTO
public static final Measure.Unit AUTO
-
-
Method Detail
-
values
public static Measure.Unit[] 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 (Measure.Unit c : Measure.Unit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Measure.Unit 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
-
-