| Package | Description |
|---|---|
| com.holonplatform.vaadin.flow.components | |
| com.holonplatform.vaadin.flow.components.builders |
| Modifier and Type | Method and Description |
|---|---|
static <T> ViewComponent<T> |
ViewComponent.create(Class<T> valueType)
Create a
ViewComponent using given value type. |
static <T> ViewComponent<T> |
ViewComponent.create(com.holonplatform.core.property.Property<T> property)
Create a
ViewComponent using given Property for label and value presentation through the
Property.present(Object) method. |
static <T> ViewComponent<T> |
Components.view.property(com.holonplatform.core.property.Property<T> property)
Create a
ViewComponent using given Property for label and value presentation through the
Property.present(Object) method. |
default <T> ViewComponent<T> |
PropertyViewGroup.requireViewComponent(com.holonplatform.core.property.Property<T> property)
Get the
ViewComponent bound to the given property, throwing a
Property.PropertyNotFoundException if not available. |
static <T> ViewComponent<T> |
Components.view.type(Class<T> valueType)
Create a
ViewComponent using given value type. |
| Modifier and Type | Method and Description |
|---|---|
default Class<? extends ViewComponent<T>> |
ViewComponent.ViewComponentPropertyRenderer.getRenderType() |
<T> Optional<ViewComponent<T>> |
PropertyViewGroup.getViewComponent(com.holonplatform.core.property.Property<T> property)
Get the
ViewComponent bound to the given property, if available. |
| Modifier and Type | Method and Description |
|---|---|
static <T> ViewComponent.ViewComponentPropertyRenderer<T> |
ViewComponent.ViewComponentPropertyRenderer.create(Function<com.holonplatform.core.property.Property<? extends T>,ViewComponent<T>> function)
Create a new
ViewComponent.ViewComponentPropertyRenderer using given function. |
| Modifier and Type | Method and Description |
|---|---|
ViewComponent<T> |
ViewComponentBuilder.build()
Build the
ViewComponent instance. |
ViewComponent<T> |
ViewComponentAdapterBuilder.build()
Build the
ViewComponent instance. |
| Modifier and Type | Method and Description |
|---|---|
default <T> C |
PropertyViewGroupConfigurator.bind(com.holonplatform.core.property.Property<T> property,
ViewComponent<T> viewComponent)
Bind the given
property to given viewComponent instance. |
| Modifier and Type | Method and Description |
|---|---|
default <T> C |
PropertyViewGroupConfigurator.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 |
PropertyViewGroupConfigurator.bind(com.holonplatform.core.property.Property<T> property,
com.holonplatform.core.property.PropertyRenderer<ViewComponent<T>,T> renderer)
|
C |
PropertyViewGroupConfigurator.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. |
Copyright © 2019 The Holon Platform. All rights reserved.