Package org.vaadin.miki.markers
Interface HasLabelPositionable
-
- All Superinterfaces:
com.vaadin.flow.component.HasElement,Serializable
- All Known Subinterfaces:
WithLabelPositionableMixin<SELF>
- All Known Implementing Classes:
AbstractSuperFloatingPointField,AbstractSuperNumberField,CollectionField,GridMultiSelect,GridSelect,LabelField,MapField,ObjectField,SuperBigDecimalField,SuperCheckbox,SuperDatePicker,SuperDateTimePicker,SuperDoubleField,SuperIntegerField,SuperLongField,SuperTextArea,SuperTextField,VariantField
public interface HasLabelPositionable extends com.vaadin.flow.component.HasElementMarker interface for components that have a positionable label.- Since:
- 2022-09-23
- Author:
- miki
-
-
Field Summary
Fields Modifier and Type Field Description static StringLABEL_POSITION_ATTRIBUTEAttribute name that contains the selected label position value.static StringLABEL_POSITION_DETAILS_ATTRIBUTEAttribute name that contains details of the label for easy styling.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default LabelPositiongetLabelPosition()Returns current label position, if it has been set.default voidsetLabelPosition(LabelPosition position)Sets the label position to a new one.
-
-
-
Field Detail
-
LABEL_POSITION_ATTRIBUTE
static final String LABEL_POSITION_ATTRIBUTE
Attribute name that contains the selected label position value.- See Also:
- Constant Field Values
-
LABEL_POSITION_DETAILS_ATTRIBUTE
static final String LABEL_POSITION_DETAILS_ATTRIBUTE
Attribute name that contains details of the label for easy styling.- See Also:
- Constant Field Values
-
-
Method Detail
-
setLabelPosition
default void setLabelPosition(LabelPosition position)
Sets the label position to a new one.- Parameters:
position- A position to use. Settingnullwill reset it to the default setting.
-
getLabelPosition
default LabelPosition getLabelPosition()
Returns current label position, if it has been set.- Returns:
- A
LabelPosition.
-
-