Package org.vaadin.miki.shared.labels
Enum Class LabelPosition
- All Implemented Interfaces:
Serializable,Comparable<LabelPosition>,Constable
Available label positions.
- Since:
- 2022-09-23
- Author:
- miki
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLabel is placed to the side of the component, after it, and aligned to the end of the column.Label is placed to the side of the component, after it, and aligned to the middle of the column.Label is placed to the side of the component, after it, and aligned to the start of the column.Label is placed to the side of the component, before it, and aligned to the end of the column.Label is placed to the side of the component, before it, and aligned to the middle of the column.Label is placed to the side of the component, before it, and aligned to the start of the column.Default label position, without any changes.Label is placed as the last thing of the entire component. -
Method Summary
Modifier and TypeMethodDescriptionThe attribute value that corresponds to the given label position.static LabelPositionReturns the enum constant of this class with the specified name.static LabelPosition[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default label position, without any changes. -
BEFORE_START
Label is placed to the side of the component, before it, and aligned to the start of the column. In left-to-right, top-to-bottom layouts, this means: label on the left, aligned to the top. -
BEFORE_MIDDLE
Label is placed to the side of the component, before it, and aligned to the middle of the column. In left-to-right, top-to-bottom layouts, this means: label on the left, in the vertical middle of column. -
BEFORE_END
Label is placed to the side of the component, before it, and aligned to the end of the column. In left-to-right, top-to-bottom layouts, this means: label on the left, aligned to the bottom. -
AFTER_START
Label is placed to the side of the component, after it, and aligned to the start of the column. In left-to-right, top-to-bottom layouts, this means: label on the right, aligned to the top. -
AFTER_MIDDLE
Label is placed to the side of the component, after it, and aligned to the middle of the column. In left-to-right, top-to-bottom layouts, this means: label on the right, in the vertical middle of column. -
AFTER_END
Label is placed to the side of the component, after it, and aligned to the end of the column. In left-to-right, top-to-bottom layouts, this means: label on the right, aligned to the bottom. -
LAST
Label is placed as the last thing of the entire component. In left-to-right, top-to-bottom layouts, this means: label on the bottom.
-
-
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
-
getPositionData
The attribute value that corresponds to the given label position. Used by CSS selectors. This is a space-separated list of styles. Nevernull.- Returns:
- A non-
nullarray.
-