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.HasElement
Marker interface for components that have a positionable label.
Since:
2022-09-23
Author:
miki
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Attribute name that contains the selected label position value.
    static final String
    Attribute name that contains details of the label for easy styling.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns current label position, if it has been set.
    default void
    Sets the label position to a new one.

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement
  • Field Details

    • LABEL_POSITION_ATTRIBUTE

      static final String LABEL_POSITION_ATTRIBUTE
      Attribute name that contains the selected label position value.
      See Also:
    • LABEL_POSITION_DETAILS_ATTRIBUTE

      static final String LABEL_POSITION_DETAILS_ATTRIBUTE
      Attribute name that contains details of the label for easy styling.
      See Also:
  • Method Details

    • setLabelPosition

      default void setLabelPosition(LabelPosition position)
      Sets the label position to a new one.
      Parameters:
      position - A position to use. Setting null will reset it to the default setting.
    • getLabelPosition

      default LabelPosition getLabelPosition()
      Returns current label position, if it has been set.
      Returns:
      A LabelPosition.