Package org.apache.myfaces.tobago.layout
Enum SegmentJustify
- java.lang.Object
-
- java.lang.Enum<SegmentJustify>
-
- org.apache.myfaces.tobago.layout.SegmentJustify
-
- All Implemented Interfaces:
Serializable
,Comparable<SegmentJustify>
public enum SegmentJustify extends Enum<SegmentJustify>
Values for horizontal 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
AROUND
Internal constant to use in annotations.static String
BETWEEN
Internal constant to use in annotations.static String
CENTER
Internal constant to use in annotations.static String
END
Internal constant to use in annotations.static String
NONE
Internal constant to use in annotations.static String
START
Internal constant to use in annotations.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SegmentJustify
valueOf(String name)
Returns the enum constant of this type with the specified name.static SegmentJustify[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
none
public static final SegmentJustify none
-
start
public static final SegmentJustify start
-
center
public static final SegmentJustify center
-
end
public static final SegmentJustify end
-
around
public static final SegmentJustify around
-
between
public static final SegmentJustify between
-
-
Field Detail
-
NONE
public static final String NONE
Internal constant to use in annotations. Please usenone
- See Also:
- Constant Field Values
-
START
public static final String START
Internal constant to use in annotations. Please usestart
- See Also:
- Constant Field Values
-
CENTER
public static final String CENTER
Internal constant to use in annotations. Please usecenter
- See Also:
- Constant Field Values
-
END
public static final String END
Internal constant to use in annotations. Please useend
- See Also:
- Constant Field Values
-
AROUND
public static final String AROUND
Internal constant to use in annotations. Please usearound
- See Also:
- Constant Field Values
-
BETWEEN
public static final String BETWEEN
Internal constant to use in annotations. Please usebetween
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static SegmentJustify[] 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 (SegmentJustify c : SegmentJustify.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SegmentJustify 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
-
-