Enum Class MLItemType
- All Implemented Interfaces:
Serializable
,Comparable<MLItemType>
,Constable
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe button set consists of a few buttons that behaves as radio button choices, i.e.Calendar date input.The checkbox has a text on leading/trailing sides and a description.Combobox with optional textual input that displays a pop-up list of choices.Date/time input in form of a pop-up to input a date and/or time in various forms.Numeric input in form of an spinner for integer values between two values.The radio button has a text on leading/trailing sides and a description.A simple list item has a text on leading/trailing sides and a description.The slider can be set to represent a value in a range.The switch has a text on leading side and a description.Text entry is a text box that accepts any user input, with the additional specification of text type to show a special keyboard (e.g.Field Summary
FieldsMethod Summary
Modifier and TypeMethodDescriptionstatic MLItemType
from
(int type) Returns the type from an integer value.static MLItemType
Returns the enum constant of this class with the specified name.static MLItemType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
SIMPLE
A simple list item has a text on leading/trailing sides and a description.The trailing side is optional as well as the description.
An optional description text can be added to the bottom of the list item.
CHECKBOX
The checkbox has a text on leading/trailing sides and a description. On the trailing side, a checkbox is shown.The trailing text can be left adjusted after the leading text that may have a fixed width in order to have an additional column of text.
The selection state is independent of other components, support for third state exists.
An optional description text can be added to the bottom of the list item.
SWITCH
The switch has a text on leading side and a description. On the trailing side, a switch is shown.The switch can be left adjusted after the leading text that may have a fixed width in order to have an additional column of text.
The selection state is independent of other components, and does not support third state (as the checkbox does).
An optional description text can be added to the bottom of the list item.
RADIO_BUTTON
The radio button has a text on leading/trailing sides and a description. On the trailing side, a radio button is shown.The trailing text can be left adjusted after the leading text that may have a fixed width in order to have an additional column of text.
The selection state only allows one radio button in the same group to be selected at a time.
An optional description text can be added to the bottom of the list item.
BUTTON_SET
The button set consists of a few buttons that behaves as radio button choices, i.e. one button is selected at a time.The button set can be preceded with a text and have an optional description below.
The button set is normally justified to the trailing side, but has an option to adjust to leading position. The text width can be fixed in order to produce a column for alignment.
An optional description text can be added to the bottom of the list item.
TEXT_ENTRY
Text entry is a text box that accepts any user input, with the additional specification of text type to show a special keyboard (e.g. URL, Phone Number, Numeric).The text entry can be preceded with a leading text with an optional fixed width, and the text entry will take up the remaining space in the list item.
The text entry may have a fixed width and be trailing justified (i.e. right for LTR or left for RTL).
An action button can be added to the trailing side.
An optional description text can be added to the bottom of the list item.
NUMERIC_SPINNER
Numeric input in form of an spinner for integer values between two values. A small pop-up is displayed to perform the input, or optionally a plus/minus sign surrounding the value.The numeric input can be preceded with a leading text with an optional fixed width, and the text entry will take up the remaining space in the list item.
The text entry may have a fixed width and be trailing justified (i.e. right for LTR or left for RTL).
An action button can be added to the trailing side.
An optional description text can be added to the bottom of the list item.
DATE_TIME
Date/time input in form of a pop-up to input a date and/or time in various forms.The date/time input can be preceded with a leading text with an optional fixed width, and the text entry will take up the remaining space in the list item.
An action button can be added to the trailing side.
An optional description text can be added to the bottom of the list item.
CALENDAR
Calendar date input.An action button can be added to the trailing side.
An optional description text can be added to the bottom of the list item.
COMBOBOX
Combobox with optional textual input that displays a pop-up list of choices.The combobox input can be preceded with a leading text with an optional fixed width, and the text entry will take up the remaining space in the list item.
An action button can be added to the trailing side.
An optional description text can be added to the bottom of the list item.
SLIDER
The slider can be set to represent a value in a range. It has various display options.The slider set can be preceded with a text and have an optional description below.
The slider set is normally justified to the trailing side, but has an option to adjust to leading position. The text width can be fixed in order to produce a column for alignment.
An optional description text can be added to the bottom of the list item.
Field Details
type
public final int typeThe type value.
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
from
Returns the type from an integer value.- Parameters:
type
- The type value.- Returns:
- The type, or SIMPLE if the type value is not between 0 and 10 inclusive.