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
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessManager
protected CollectionFormatter
protected MetadataTools
-
Constructor Summary
ConstructorDescriptionHtmlContainerReadonlyDataBindingImpl
(MetadataTools metadataTools, CollectionFormatter collectionFormatter, AccessManager accessManager) -
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 containerprotected void
checkPermissions
(com.vaadin.flow.component.HtmlContainer htmlContainer, ValueSource<?> valueSource) protected void
checkPermissions
(com.vaadin.flow.component.HtmlContainer htmlContainer, InstanceContainer<?> dataContainer, String property) void
unbind
(com.vaadin.flow.component.HtmlContainer htmlContainer) Remove data binding fom html containerprotected void
unbind
(com.vaadin.flow.component.HtmlContainer htmlContainer, boolean warnIfBound) protected <T> void
updateHtmlContainerText
(com.vaadin.flow.component.HtmlContainer htmlContainer, T value)
-
Field Details
-
metadataTools
-
collectionFormatter
-
accessManager
-
listenersRegistrations
-
-
Constructor Details
-
HtmlContainerReadonlyDataBindingImpl
public HtmlContainerReadonlyDataBindingImpl(MetadataTools metadataTools, CollectionFormatter collectionFormatter, AccessManager accessManager)
-
-
Method Details
-
bind
Description copied from interface:HtmlContainerReadonlyDataBinding
BindsHtmlContainer
withValueSource
to showValueSource.getValue()
as a text value in html container- Specified by:
bind
in interfaceHtmlContainerReadonlyDataBinding
- Parameters:
htmlContainer
- html containervalueSource
- data component holding a typed value
-
bind
public void bind(com.vaadin.flow.component.HtmlContainer htmlContainer, InstanceContainer<?> dataContainer, String property) Description copied from interface:HtmlContainerReadonlyDataBinding
BindsHtmlContainer
withInstanceContainer
to showInstanceContainer.getItem()
property as a text value in html container- Specified by:
bind
in interfaceHtmlContainerReadonlyDataBinding
- Parameters:
htmlContainer
- html containerdataContainer
- instance containerproperty
- name of an entity property whose value is showed in html container
-
bind
public void bind(com.vaadin.flow.component.HtmlContainer htmlContainer, CollectionContainer<?> dataContainer, String property) Description copied from interface:HtmlContainerReadonlyDataBinding
BindsHtmlContainer
withCollectionContainer
to showInstanceContainer.getItem()
property as a text value in html container- Specified by:
bind
in interfaceHtmlContainerReadonlyDataBinding
- Parameters:
htmlContainer
- html containerdataContainer
- collection containerproperty
- name of an entity property whose value is showed in html container
-
unbind
public void unbind(com.vaadin.flow.component.HtmlContainer htmlContainer) Description copied from interface:HtmlContainerReadonlyDataBinding
Remove data binding fom html container- Specified by:
unbind
in interfaceHtmlContainerReadonlyDataBinding
- Parameters:
htmlContainer
- html container
-
updateHtmlContainerText
protected <T> void updateHtmlContainerText(com.vaadin.flow.component.HtmlContainer htmlContainer, @Nullable T value) -
unbind
protected void unbind(com.vaadin.flow.component.HtmlContainer htmlContainer, boolean warnIfBound) -
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)
-