name
name: (ComponentOrientation) -> stringThe constant's name as declared.
ComponentOrientation.valueOf(…)
ComponentOrientation.HORIZONTAL
ComponentOrientation.VERTICAL| Method | Returns | Description |
|---|---|---|
name() | string | The constant's name as declared. |
ordinal() | number | The constant's 0-based position in values(). |
toString() | string | name(); tostring(c) answers the same. |
compareTo(ComponentOrientation) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
values() | {ComponentOrientation} | Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it. |
valueOf(string) | ComponentOrientation | valueOf(name): the constant named name; any other name is an error. |
| Field | Type | Description |
|---|---|---|
HORIZONTAL | ComponentOrientation | HORIZONTAL: ordinal 0. |
VERTICAL | ComponentOrientation | VERTICAL: ordinal 1. |
| Method | Returns | Description |
|---|---|---|
ComponentOrientationClass.valueOf | ComponentOrientation | valueOf(name): the constant named name; any other name is an error. |
ComponentOrientationClass.values | {ComponentOrientation} | Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it. |
namename: (ComponentOrientation) -> stringThe constant's name as declared.
ordinalordinal: (ComponentOrientation) -> numberThe constant's 0-based position in values().
toStringtoString: (ComponentOrientation) -> stringname(); tostring(c) answers the same.
compareTocompareTo: (ComponentOrientation, ComponentOrientation) -> numberThis ordinal less other's.
equalsequals: (ComponentOrientation, any) -> booleanWhether other is this constant. == answers the same.
valuesvalues: () -> {ComponentOrientation}Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it.
valueOfvalueOf: (string) -> ComponentOrientationvalueOf(name): the constant named name; any other name is an error.