Package org.apache.myfaces.tobago.layout
Enum Margin
- java.lang.Object
-
- java.lang.Enum<Margin>
-
- org.apache.myfaces.tobago.layout.Margin
-
- All Implemented Interfaces:
Serializable
,Comparable<Margin>
public enum Margin extends Enum<Margin>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Margin
valueOf(String name)
Returns the enum constant of this type with the specified name.static Margin[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Field Detail
-
NONE
public static final String NONE
- See Also:
- Constant Field Values
-
LEFT
public static final String LEFT
- See Also:
- Constant Field Values
-
RIGHT
public static final String RIGHT
- See Also:
- Constant Field Values
-
BOTH
public static final String BOTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Margin[] 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 (Margin c : Margin.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Margin 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
-
-