C - Concrete configurator typepublic interface PropertyViewGroupConfigurator<C extends PropertyViewGroupConfigurator<C>> extends ComponentGroupConfigurator<com.holonplatform.core.property.Property<?>,com.holonplatform.core.property.PropertyBox,ViewComponent<?>,PropertyViewGroup,C>
PropertyViewGroup configurator.| Modifier and Type | Method and Description |
|---|---|
default <T> C |
bind(com.holonplatform.core.property.Property<T> property,
Function<com.holonplatform.core.property.Property<? extends T>,ViewComponent<T>> function)
Set the function to use to render the
ViewComponent bound to given property. |
<T> C |
bind(com.holonplatform.core.property.Property<T> property,
com.holonplatform.core.property.PropertyRenderer<ViewComponent<T>,T> renderer)
|
default <T> C |
bind(com.holonplatform.core.property.Property<T> property,
ViewComponent<T> viewComponent)
Bind the given
property to given viewComponent instance. |
<T> C |
hidden(com.holonplatform.core.property.Property<T> property)
Set the given property as hidden.
|
C |
withPostProcessor(BiConsumer<com.holonplatform.core.property.Property<?>,ViewComponent<?>> postProcessor)
Add a
BiConsumer to allow further ViewComponent configuration after generation and before the
ViewComponent is actually bound to a property. |
usePropertyRendererRegistry, withValueChangeListener<T> C hidden(com.holonplatform.core.property.Property<T> property)
ViewComponent bound to the property will
never be generated, but its value will be written to a PropertyBox using
PropertyViewGroup.getValue().T - Property typeproperty - Property to set as hidden (not null)<T> C bind(com.holonplatform.core.property.Property<T> property, com.holonplatform.core.property.PropertyRenderer<ViewComponent<T>,T> renderer)
T - Property typeproperty - The property to render (not null)renderer - The renderer to use to render the property ViewComponent (not null)default <T> C bind(com.holonplatform.core.property.Property<T> property, Function<com.holonplatform.core.property.Property<? extends T>,ViewComponent<T>> function)
ViewComponent bound to given property.T - Property typeproperty - The property to render (not null)function - The function to use to render the property ViewComponent (not null)default <T> C bind(com.holonplatform.core.property.Property<T> property, ViewComponent<T> viewComponent)
property to given viewComponent instance.T - Property typeproperty - The property to render (not null)viewComponent - The ViewComponent to use to render the property (not null)C withPostProcessor(BiConsumer<com.holonplatform.core.property.Property<?>,ViewComponent<?>> postProcessor)
BiConsumer to allow further ViewComponent configuration after generation and before the
ViewComponent is actually bound to a property.postProcessor - the post processor to add (not null)Copyright © 2020 The Holon Platform. All rights reserved.