Interface HasPlaceholder

All Known Subinterfaces:
WithPlaceholderMixin<SELF>
All Known Implementing Classes:
AbstractSuperFloatingPointField, AbstractSuperNumberField, SuperBigDecimalField, SuperDatePicker, SuperDoubleField, SuperIntegerField, SuperLongField, SuperTextArea, SuperTextField

public interface HasPlaceholder
Marker interface for components that have a placeholder text. This is a workaround for issue #4068 in Vaadin Flow.
Since:
2020-04-07
Author:
miki
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns current placeholder text for this object.
    void
    setPlaceholder(String placeholder)
    Sets the placeholder text for this object.
  • Method Details

    • getPlaceholder

      String getPlaceholder()
      Returns current placeholder text for this object.
      Returns:
      Current placeholder text. Can be null, meaning no placeholder.
    • setPlaceholder

      void setPlaceholder(String placeholder)
      Sets the placeholder text for this object.
      Parameters:
      placeholder - Placeholder text. Can be null, meaning no placeholder.