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 TypeMethodDescriptionvoid
bind
(com.vaadin.flow.component.HtmlContainer htmlContainer, ValueSource<?> valueSource) BindsHtmlContainer
withValueSource
to showValueSource.getValue()
as a text value in html containervoid
bind
(com.vaadin.flow.component.HtmlContainer htmlContainer, CollectionContainer<?> dataContainer, String property) BindsHtmlContainer
withCollectionContainer
to showInstanceContainer.getItem()
property as a text value in html containervoid
bind
(com.vaadin.flow.component.HtmlContainer htmlContainer, InstanceContainer<?> dataContainer, String property) BindsHtmlContainer
withInstanceContainer
to showInstanceContainer.getItem()
property as a text value in html containervoid
unbind
(com.vaadin.flow.component.HtmlContainer htmlContainer) Remove data binding fom html container
-
Method Details
-
bind
BindsHtmlContainer
withValueSource
to showValueSource.getValue()
as a text value in html container- Parameters:
htmlContainer
- html containervalueSource
- data component holding a typed value
-
bind
void 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 showed in html container
-
bind
void 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 showed in html container
-
unbind
void unbind(com.vaadin.flow.component.HtmlContainer htmlContainer) Remove data binding fom html container- Parameters:
htmlContainer
- html container
-