com.holonplatform.vaadin.flow.components

## Interface HasLabel

-     public interface HasLabel

  Represents a component which supports a label.
  Since:
    5.2.0

- - ### Method Summary

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

- - ### Method Detail

    - #### getLabel

          String getLabel()

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

    - #### setLabel

          void setLabel(String label)

      Set the component label.
      Parameters:
        `label` - The label text to set

    - #### create

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

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

Copyright © 2019 The Holon Platform. All rights reserved.