Package com.jbstrap.ui.components.form
Interface SupportPlaceholder<T extends FormItem<?,?>>
- All Known Implementing Classes:
ComboboxItem,DatePicker,DateRangePicker,IntegerItem,NumberItem,PasswordItem,SelectorItem,TextItem
public interface SupportPlaceholder<T extends FormItem<?,?>>
You can use this interface to extend the FormItem component by handling the placeholder text that appears on the interface
- Since:
- 4.0
- Author:
- JBStrap
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringGets the form item’s placeholder text.default TsetPlaceholder(String placeholder) Sets the placeholder to be displayed when the form item is empty.
-
Method Details
-
getPlaceholder
Gets the form item’s placeholder text.- Returns:
- Placeholder text to be displayed when the form item is empty or
nullif no placeholder is set
-
setPlaceholder
Sets the placeholder to be displayed when the form item is empty. Ifnullis set, no placeholder is displayed in the form item. By default, no placeholder is specified.- Parameters:
placeholder- Placeholder text- Returns:
- Form item component
-