com.holonplatform.vaadin.flow.components

## Interface HasPlaceholder

-     public interface HasPlaceholder

  Represents a component which supports a placeholder text.
  Since:
    5.2.0

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `static HasPlaceholder` | `create(Supplier<String> getter, Consumer<String> setter)` Create a new `HasPlaceholder` using given callback functions to get and set the placeholder text.
    `String` | `getPlaceholder()` Get the placeholder text.
    `void` | `setPlaceholder(String placeholder)` Set the placeholder text.

- - ### Method Detail

    - #### getPlaceholder

          String getPlaceholder()

      Get the placeholder text.
      Returns:
        The placeholder text (may be null)

    - #### setPlaceholder

          void setPlaceholder(String placeholder)

      Set the placeholder text.
      Parameters:
        `placeholder` - The placeholder text to set

    - #### create

          static HasPlaceholder create(Supplier<String> getter,
                                       Consumer<String> setter)

      Create a new `HasPlaceholder` using given callback functions to get and set the placeholder text.
      Parameters:
        `getter` - placeholder text getter (not null)
        `setter` - placeholder text setter (not null)
      Returns:
        A new `HasPlaceholder` using given callback functions

Copyright © 2020 The Holon Platform. All rights reserved.