com.holonplatform.vaadin.flow.components

## Interface ValueComponent<V>

- Type Parameters:
    `V` - Value type
  All Superinterfaces:
    HasComponent, com.vaadin.flow.component.HasElement, Serializable
  All Known Subinterfaces:
    Input<T>, MultiSelect<T>, PropertyInputForm, PropertyViewForm, SingleSelect<T>, ValidatableInput<T>, ValidatableMultiSelect<T>, ValidatableSingleSelect<T>, ViewComponent<V>

      public interface ValueComponent<V>
      extends HasComponent

  Represents an object which can contain a value and provides its UI `Component` representation.
  Since:
    5.0.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `V` | `getValue()` Gets the current value of this value component.
    `default Optional<com.vaadin.flow.data.value.HasValueChangeMode>` | `hasValueChangeMode()` Checks whether the `Component` supports a value change mode, using the `HasValueChangeMode` interface.

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.HasComponent

      `create, getComponent, getElement, hasEnabled, hasLabel, hasSize, hasStyle, hasValidation, isVisible, setVisible`

- - ### Method Detail

    - #### getValue

          V getValue()

      Gets the current value of this value component.
      Returns:
        the current value

    - #### hasValueChangeMode

          default Optional<com.vaadin.flow.data.value.HasValueChangeMode> hasValueChangeMode()

      Checks whether the `Component` supports a value change mode, using the `HasValueChangeMode` interface.
      Returns:
        If the component supports a value change mode, return the `HasValueChangeMode` reference. An empty Optional otherwise.

Copyright © 2019 The Holon Platform. All rights reserved.