com.holonplatform.vaadin.flow.components

## Interface HasTitle

-     public interface HasTitle

  Represents a component which supports a title, i.e. a description of the UI element.
  Since:
    5.2.0

- - ### Method Summary

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

- - ### Method Detail

    - #### getTitle

          String getTitle()

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

    - #### setTitle

          void setTitle(String title)

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

    - #### create

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

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

Copyright © 2019 The Holon Platform. All rights reserved.