public enum HorizontalAlignment extends Enum<HorizontalAlignment> implements SimpleDatatype<String>
Justification). HorizontalAlignment.
 | Alignment | Text | 
|---|---|
| LEFT | Hello     | 
| CENTER |   Hello   | 
| RIGHT |     Hello | 
| Enum Constant and Description | 
|---|
| CENTERAlign content centered to the middle (same space to the left and the right). | 
| LEFTAlign content to the left side. | 
| RIGHTAlign content to the right side. | 
| Modifier and Type | Field and Description | 
|---|---|
| private String | title | 
| private String | value | 
| Modifier and Type | Method and Description | 
|---|---|
| static HorizontalAlignment | fromValue(String value)This method gets the  HorizontalAlignmentwith the givenvalue. | 
| Alignment | getAlignment()This method gets the corresponding  Alignment. | 
| String | getValue()This method returns the raw value of this datatype. | 
| String | toString() | 
| static HorizontalAlignment | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static HorizontalAlignment[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final HorizontalAlignment LEFT
public static final HorizontalAlignment RIGHT
public static final HorizontalAlignment CENTER
public static HorizontalAlignment[] values()
for (HorizontalAlignment c : HorizontalAlignment.values()) System.out.println(c);
public static HorizontalAlignment 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 nullpublic String getValue()
SimpleDatatypeString
 , Character, Boolean, any type of Number, any type of java.time.LocalDate, etc.).getValue in interface AttributeReadValue<String>getValue in interface SimpleDatatype<String>public Alignment getAlignment()
Alignment.Alignment.public String toString()
DatatypeString representation of this Datatype. While the general contract of
 Object.toString() is very weak and mainly used for debugging, the contract here is very strong. The
 returned String has to be suitable for end-users and official output to any kind of sink. NlsMessage for
 this purpose and implement NlsObject if you want to support I18N/L10N.public static HorizontalAlignment fromValue(String value)
HorizontalAlignment with the given value.value - is the value of the requested HorizontalAlignment.HorizontalAlignment.Copyright © 2001–2016 mmm-Team. All rights reserved.