Package io.jmix.flowui.data.binding
Interface HtmlContainerReadonlyDataBinding
- All Known Implementing Classes:
HtmlContainerReadonlyDataBindingImpl
public interface HtmlContainerReadonlyDataBinding
Binds
HtmlContainer
with ValueSource
, InstanceContainer
or CollectionContainer
to show entity property value.-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.Registration
bind
(com.vaadin.flow.component.HtmlContainer htmlContainer, ValueSource<?> valueSource) BindsHtmlContainer
withValueSource
to showValueSource.getValue()
as a text value in html containercom.vaadin.flow.shared.Registration
bind
(com.vaadin.flow.component.HtmlContainer htmlContainer, CollectionContainer<?> dataContainer, String property) BindsHtmlContainer
withCollectionContainer
to showInstanceContainer.getItem()
property as a text value in html containercom.vaadin.flow.shared.Registration
bind
(com.vaadin.flow.component.HtmlContainer htmlContainer, InstanceContainer<?> dataContainer, String property) BindsHtmlContainer
withInstanceContainer
to showInstanceContainer.getItem()
property as a text value in html container
-
Method Details
-
bind
com.vaadin.flow.shared.Registration bind(com.vaadin.flow.component.HtmlContainer htmlContainer, ValueSource<?> valueSource) BindsHtmlContainer
withValueSource
to showValueSource.getValue()
as a text value in html container- Parameters:
htmlContainer
- html containervalueSource
- 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) BindsHtmlContainer
withInstanceContainer
to showInstanceContainer.getItem()
property as a text value in html container- Parameters:
htmlContainer
- html containerdataContainer
- instance containerproperty
- 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) BindsHtmlContainer
withCollectionContainer
to showInstanceContainer.getItem()
property as a text value in html container- Parameters:
htmlContainer
- html containerdataContainer
- collection containerproperty
- name of an entity property whose value is shown in html container- Returns:
- a registration object for removing an event listener
-