TextStyle

Methods
10
Fields
6

Getting one

TextStyle.valueOf(…)
TextStyle.FULL
TextStyle.FULL_STANDALONE

Methods

MethodReturnsDescription
name()stringThe constant's name as declared.
ordinal()numberThe constant's 0-based position in values().
toString()stringThe constant's printed name; tostring(c) answers the same.
compareTo(TextStyle)numberThis ordinal less other's.
equals(any)booleanWhether other is this constant. == answers the same.
isStandalone()booleanWhether this is a stand-alone style.
asStandalone()TextStyleThe stand-alone style of the same size.
asNormal()TextStyleThe normal style of the same size.
values(){TextStyle}Every constant in ordinal order, as a new 1-based array.
valueOf(string)TextStyleThe constant named name; any other name is an error.

Fields

FieldTypeDescription
FULLTextStyleTextStyle.FULL.
FULL_STANDALONETextStyleTextStyle.FULL_STANDALONE.
SHORTTextStyleTextStyle.SHORT.
SHORT_STANDALONETextStyleTextStyle.SHORT_STANDALONE.
NARROWTextStyleTextStyle.NARROW.
NARROW_STANDALONETextStyleTextStyle.NARROW_STANDALONE.

Returned by

MethodReturnsDescription
TextStyleClass.valueOfTextStyleThe constant named name; any other name is an error.
TextStyleClass.values{TextStyle}Every constant in ordinal order, as a new 1-based array.

Method details

ordinal

ordinal: (TextStyle) -> number

The constant's 0-based position in values().

toString

toString: (TextStyle) -> string

The constant's printed name; tostring(c) answers the same.

equals

equals: (TextStyle, any) -> boolean

Whether other is this constant. == answers the same.

values

values: () -> {TextStyle}

Every constant in ordinal order, as a new 1-based array.

valueOf

valueOf: (string) -> TextStyle

The constant named name; any other name is an error.