G - Actual PropertyViewGroup typeB - Concrete builder typepublic static interface PropertyViewGroup.Builder<G extends PropertyViewGroup,B extends PropertyViewGroup.Builder<G,B>>
PropertyViewGroup builder.| Modifier and Type | Method and Description |
|---|---|
<T,F extends T> |
bind(com.holonplatform.core.property.Property<T> property,
com.holonplatform.core.property.PropertyRenderer<ViewComponent<F>,T> renderer)
|
<T> B |
bind(com.holonplatform.core.property.Property<T> property,
PropertyViewGroup.ViewComponentPropertyRenderer<T> renderer)
Convenience method to set a specific
PropertyRenderer to use to render the ViewComponent to
bind to given property using the PropertyViewGroup.ViewComponentPropertyRenderer functional interface. |
default <T> B |
bind(com.holonplatform.core.property.Property<T> property,
ViewComponent<? extends T> viewComponent)
Bind the given
property to given viewComponent instance. |
G |
build()
Build the
PropertyViewGroup |
<T> B |
hidden(com.holonplatform.core.property.Property<T> property)
Set the given property as hidden.
|
B |
ignoreMissingViewComponents(boolean ignoreMissingViewComponents)
Set whether to ignore properties without a bound
ViewComponent. |
<P extends com.holonplatform.core.property.Property> |
properties(Iterable<P> properties)
Add given properties to the
PropertyViewGroup property set. |
<P extends com.holonplatform.core.property.Property> |
properties(P... properties)
Add given properties to the
PropertyViewGroup property set. |
B |
withPostProcessor(PropertyBinding.PostProcessor<ViewComponent<?>> postProcessor)
Add a
PropertyBinding.PostProcessor to allow further ViewComponent configuration after generation and before
the ViewComponent is actually bound to a property. |
<P extends com.holonplatform.core.property.Property> B properties(P... properties)
PropertyViewGroup property set.P - Property typeproperties - Properties to add<P extends com.holonplatform.core.property.Property> B properties(Iterable<P> properties)
PropertyViewGroup property set.P - Property typeproperties - Properties to add (not null)<T> B 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,F extends T> B bind(com.holonplatform.core.property.Property<T> property, com.holonplatform.core.property.PropertyRenderer<ViewComponent<F>,T> renderer)
T - Property typeF - Rendered ViewComponent typeproperty - Property (not null)renderer - Property renderer (not null)<T> B bind(com.holonplatform.core.property.Property<T> property, PropertyViewGroup.ViewComponentPropertyRenderer<T> renderer)
PropertyRenderer to use to render the ViewComponent to
bind to given property using the PropertyViewGroup.ViewComponentPropertyRenderer functional interface.T - Property typeproperty - Property (not null)renderer - Property renderer (not null)default <T> B bind(com.holonplatform.core.property.Property<T> property, ViewComponent<? extends T> viewComponent)
property to given viewComponent instance. If the property was
already bound to a ViewComponent, the old ViewComponent will be replaced by the new ViewComponent.T - Property typeproperty - Property (not null)viewComponent - ViewComponent to bind (not null)B withPostProcessor(PropertyBinding.PostProcessor<ViewComponent<?>> postProcessor)
PropertyBinding.PostProcessor to allow further ViewComponent configuration after generation and before
the ViewComponent is actually bound to a property.postProcessor - the PropertyBinding.PostProcessor to add (not null)B ignoreMissingViewComponents(boolean ignoreMissingViewComponents)
ViewComponent. Default is false, and an
exception is thrown if a property of the PropertyViewGroup cannot be bound to any ViewComponent.ignoreMissingViewComponents - Whether to ignore when the ViewComponent for a property is missingG build()
PropertyViewGroupCopyright © 2019 The Holon Platform. All rights reserved.