Serializable
, Comparable<TextBox.Style>
public static enum TextBox.Style extends Enum<TextBox.Style>
TextBox
to be either single line or multi line. This is usually auto-detected if
the text box has some initial content by scanning that content for \n characters.Enum Constant | Description |
---|---|
MULTI_LINE |
The
TextBox contains a none, one or many lines of text and is normally drawn over multiple lines |
SINGLE_LINE |
The
TextBox contains a single line of text and is typically drawn on one row |
Modifier and Type | Method | Description |
---|---|---|
static TextBox.Style |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static TextBox.Style[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextBox.Style SINGLE_LINE
TextBox
contains a single line of text and is typically drawn on one rowpublic static final TextBox.Style MULTI_LINE
TextBox
contains a none, one or many lines of text and is normally drawn over multiple linespublic static TextBox.Style[] values()
for (TextBox.Style c : TextBox.Style.values()) System.out.println(c);
public static TextBox.Style 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 nullCopyright © 2020. All rights reserved.