public enum TextAlign extends Enum<TextAlign>
Note: the enums are not capitalized, because of problems with PropertyEditor
.
Modifier and Type | Field and 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getValue()
Deprecated.
Since Tobago 3.0.0 Please use
Enum.name |
static TextAlign |
parse(String string)
Deprecated.
Since Tobago 3.0.0 Please use
valueOf(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.
|
public static final TextAlign left
public static final TextAlign right
public static final TextAlign center
public static final TextAlign justify
public static final String LEFT
left
public static final String RIGHT
right
public static final String CENTER
center
public static final String JUSTIFY
justify
public static TextAlign[] values()
for (TextAlign c : TextAlign.values()) System.out.println(c);
public static TextAlign valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Deprecated public String getValue()
Enum.name
@Deprecated public static TextAlign parse(String string)
valueOf(java.lang.String)
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.