Package org.apache.myfaces.tobago.layout
Enum TextAlign
- java.lang.Object
-
- java.lang.Enum<TextAlign>
-
- org.apache.myfaces.tobago.layout.TextAlign
-
- All Implemented Interfaces:
Serializable
,Comparable<TextAlign>
public enum TextAlign extends Enum<TextAlign>
Values for text alignments used with CSS.Note: the enums are not capitalized, because of problems with
PropertyEditor
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CENTER
Internal constant to use in annotations.static String
JUSTIFY
Internal constant to use in annotations.static String
LEFT
Internal constant to use in annotations.static String
RIGHT
Internal constant to use in annotations.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getValue()
Deprecated.Since Tobago 3.0.0 Please useEnum.name
static TextAlign
parse(String string)
Deprecated.Since Tobago 3.0.0 Please usevalueOf(java.lang.String)
static TextAlign
valueOf(String name)
Returns the enum constant of this type with the specified name.static TextAlign[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Field Detail
-
LEFT
public static final String LEFT
Internal constant to use in annotations. Please useleft
- See Also:
- Constant Field Values
-
RIGHT
public static final String RIGHT
Internal constant to use in annotations. Please useright
- See Also:
- Constant Field Values
-
CENTER
public static final String CENTER
Internal constant to use in annotations. Please usecenter
- See Also:
- Constant Field Values
-
JUSTIFY
public static final String JUSTIFY
Internal constant to use in annotations. Please usejustify
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static TextAlign[] 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 (TextAlign c : TextAlign.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextAlign 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
-
getValue
@Deprecated public String getValue()
Deprecated.Since Tobago 3.0.0 Please useEnum.name
-
parse
@Deprecated public static TextAlign parse(String string)
Deprecated.Since Tobago 3.0.0 Please usevalueOf(java.lang.String)
-
-