Interface HtmlContainerReadonlyDataBinding

All Known Implementing Classes:
HtmlContainerReadonlyDataBindingImpl

public interface HtmlContainerReadonlyDataBinding
Binds HtmlContainer with ValueSource, InstanceContainer or CollectionContainer to show entity property value.
  • Method Details

    • bind

      com.vaadin.flow.shared.Registration bind(com.vaadin.flow.component.HtmlContainer htmlContainer, ValueSource<?> valueSource)
      Binds HtmlContainer with ValueSource to show ValueSource.getValue() as a text value in html container
      Parameters:
      htmlContainer - html container
      valueSource - data component holding a typed value
      Returns:
      a registration object for removing an event listener
    • bind

      com.vaadin.flow.shared.Registration bind(com.vaadin.flow.component.HtmlContainer htmlContainer, InstanceContainer<?> dataContainer, String property)
      Binds HtmlContainer with InstanceContainer to show InstanceContainer.getItem() property as a text value in html container
      Parameters:
      htmlContainer - html container
      dataContainer - instance container
      property - name of an entity property whose value is shown in html container
      Returns:
      a registration object for removing an event listener
    • bind

      com.vaadin.flow.shared.Registration bind(com.vaadin.flow.component.HtmlContainer htmlContainer, CollectionContainer<?> dataContainer, String property)
      Binds HtmlContainer with CollectionContainer to show InstanceContainer.getItem() property as a text value in html container
      Parameters:
      htmlContainer - html container
      dataContainer - collection container
      property - name of an entity property whose value is shown in html container
      Returns:
      a registration object for removing an event listener