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 Type
    Method
    Description
    default String
    Gets the form item’s placeholder text.
    default T
    setPlaceholder(String placeholder)
    Sets the placeholder to be displayed when the form item is empty.
  • Method Details

    • getPlaceholder

      default String getPlaceholder()
      Gets the form item’s placeholder text.
      Returns:
      Placeholder text to be displayed when the form item is empty or null if no placeholder is set
    • setPlaceholder

      default T setPlaceholder(String placeholder)
      Sets the placeholder to be displayed when the form item is empty. If null is set, no placeholder is displayed in the form item. By default, no placeholder is specified.
      Parameters:
      placeholder - Placeholder text
      Returns:
      Form item component