public interface PropertyBoxItem
extends com.vaadin.data.Item
Item which uses a PropertyBox instance to hold and provide item property values.
This Item property set is immutable and coincides with the bound PropertyBox property set, so
Item.addItemProperty(Object, com.vaadin.data.Property) and Item.removeItemProperty(Object) operations are not
supported, throwing an UnsupportedOperationException.
| Modifier and Type | Method and Description |
|---|---|
static PropertyBoxItem |
create(com.holonplatform.core.property.PropertyBox propertyBox)
Create a PropertyBoxItem using given
propertyBox |
static <P extends com.holonplatform.core.property.Property<?>> |
empty(Iterable<P> properties)
Create a PropertyBoxItem bound to an empty PropertyBox using given properties.
|
static <P extends com.holonplatform.core.property.Property<?>> |
empty(P... properties)
Create a PropertyBoxItem bound to an empty PropertyBox using given properties.
|
static <P extends com.holonplatform.core.property.Property<?>> |
fromBean(Object bean,
com.holonplatform.core.property.PropertySet<P> properties)
Create a PropertyBoxItem using given
properties as property set and reading property values from
given bean instance. |
com.holonplatform.core.property.PropertyBox |
getPropertyBox()
Get the
PropertyBox to which the Item is bound |
com.holonplatform.core.property.PropertyBox getPropertyBox()
PropertyBox to which the Item is boundstatic PropertyBoxItem create(com.holonplatform.core.property.PropertyBox propertyBox)
propertyBoxpropertyBox - PropertyBox to provide item property set and values (not null)@SafeVarargs static <P extends com.holonplatform.core.property.Property<?>> PropertyBoxItem empty(P... properties)
P - Actual property typeproperties - Property setstatic <P extends com.holonplatform.core.property.Property<?>> PropertyBoxItem empty(Iterable<P> properties)
P - Actual property typeproperties - Property setstatic <P extends com.holonplatform.core.property.Property<?>> PropertyBoxItem fromBean(Object bean, com.holonplatform.core.property.PropertySet<P> properties)
properties as property set and reading property values from
given bean instance.
Only bean properties whose name matches a Path with same name contained in this PropertyBox property set
will be considered.
Bean instance structure must the follow JavaBeans rules providing getter methods to read bean property values.
P - Actual property typebean - Bean instance (not null)properties - Property set (not null)Copyright © 2019 The Holon Platform. All rights reserved.