Package io.jmix.flowui.data.binding.impl
Class HtmlContainerReadonlyDataBindingImpl
java.lang.Object
io.jmix.flowui.data.binding.impl.HtmlContainerReadonlyDataBindingImpl
- All Implemented Interfaces:
HtmlContainerReadonlyDataBinding
@Component("flowui_HtmlContainerDataBinding")
public class HtmlContainerReadonlyDataBindingImpl
extends Object
implements HtmlContainerReadonlyDataBinding
Implementation of
HtmlContainerReadonlyDataBinding.
This class provides functionality for binding an HtmlContainer with various data sources
such as ValueSource, InstanceContainer, or CollectionContainer
to display entity property values as text in the HTML container.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHtmlContainerReadonlyDataBindingImpl(MetadataTools metadataTools, AccessManager accessManager) -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.Registrationbind(com.vaadin.flow.component.HtmlContainer htmlContainer, ValueSource<?> valueSource) BindsHtmlContainerwithValueSourceto showValueSource.getValue()as a text value in html containercom.vaadin.flow.shared.Registrationbind(com.vaadin.flow.component.HtmlContainer htmlContainer, CollectionContainer<?> dataContainer, String property) BindsHtmlContainerwithCollectionContainerto showInstanceContainer.getItem()property as a text value in html containercom.vaadin.flow.shared.Registrationbind(com.vaadin.flow.component.HtmlContainer htmlContainer, InstanceContainer<?> dataContainer, String property) BindsHtmlContainerwithInstanceContainerto showInstanceContainer.getItem()property as a text value in html containerprotected voidcheckPermissions(com.vaadin.flow.component.HtmlContainer htmlContainer, ValueSource<?> valueSource) protected voidcheckPermissions(com.vaadin.flow.component.HtmlContainer htmlContainer, InstanceContainer<?> dataContainer, String property) protected <T> voidupdateHtmlContainerText(com.vaadin.flow.component.HtmlContainer htmlContainer, T value)
-
Field Details
-
metadataTools
-
accessManager
-
-
Constructor Details
-
HtmlContainerReadonlyDataBindingImpl
public HtmlContainerReadonlyDataBindingImpl(MetadataTools metadataTools, AccessManager accessManager)
-
-
Method Details
-
bind
public com.vaadin.flow.shared.Registration bind(com.vaadin.flow.component.HtmlContainer htmlContainer, ValueSource<?> valueSource) Description copied from interface:HtmlContainerReadonlyDataBindingBindsHtmlContainerwithValueSourceto showValueSource.getValue()as a text value in html container- Specified by:
bindin interfaceHtmlContainerReadonlyDataBinding- Parameters:
htmlContainer- html containervalueSource- data component holding a typed value- Returns:
- a registration object for removing an event listener
-
bind
public com.vaadin.flow.shared.Registration bind(com.vaadin.flow.component.HtmlContainer htmlContainer, InstanceContainer<?> dataContainer, String property) Description copied from interface:HtmlContainerReadonlyDataBindingBindsHtmlContainerwithInstanceContainerto showInstanceContainer.getItem()property as a text value in html container- Specified by:
bindin interfaceHtmlContainerReadonlyDataBinding- 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
public com.vaadin.flow.shared.Registration bind(com.vaadin.flow.component.HtmlContainer htmlContainer, CollectionContainer<?> dataContainer, String property) Description copied from interface:HtmlContainerReadonlyDataBindingBindsHtmlContainerwithCollectionContainerto showInstanceContainer.getItem()property as a text value in html container- Specified by:
bindin interfaceHtmlContainerReadonlyDataBinding- 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
-
updateHtmlContainerText
protected <T> void updateHtmlContainerText(com.vaadin.flow.component.HtmlContainer htmlContainer, @Nullable T value) -
checkPermissions
protected void checkPermissions(com.vaadin.flow.component.HtmlContainer htmlContainer, ValueSource<?> valueSource) -
checkPermissions
protected void checkPermissions(com.vaadin.flow.component.HtmlContainer htmlContainer, InstanceContainer<?> dataContainer, String property)
-