Package org.vaadin.miki.markers
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 TypeMethodDescriptionReturns current placeholder text for this object.voidsetPlaceholder(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
Sets the placeholder text for this object.- Parameters:
placeholder- Placeholder text. Can benull, meaning no placeholder.
-