public enum Orientation extends Enum<Orientation> implements SimpleDatatype<String>
Alignment| Enum Constant and Description |
|---|
HORIZONTAL
A horizontal orientation means that objects are ordered from the left to the right.
|
VERTICAL
A vertical orientation means that objects are ordered from the top to the bottom.
|
| Modifier and Type | Field and Description |
|---|---|
private String |
title |
private String |
value |
| Modifier and Type | Method and Description |
|---|---|
static Orientation |
fromValue(String value)
This method gets the
Orientation with the given value. |
Orientation |
getMirrored()
This method gets the inverse orientation.
|
String |
getValue()
This method returns the raw value of this datatype.
|
String |
toString()
|
static Orientation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Orientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Orientation HORIZONTAL
public static final Orientation VERTICAL
public static Orientation[] values()
for (Orientation c : Orientation.values()) System.out.println(c);
public static Orientation 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 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 Orientation fromValue(String value)
Orientation with the given value.value - is the value of the requested Orientation.Orientation.public Orientation getMirrored()
VERTICAL if this orientation is HORIZONTAL and vice versa.Copyright © 2001–2016 mmm-Team. All rights reserved.