public interface PropertyViewGroup extends PropertySetBound, ValueHolder<com.holonplatform.core.property.PropertyBox>
ViewComponent
s bound to a Property
set.Modifier and Type | Interface and Description |
---|---|
static interface |
PropertyViewGroup.Builder<G extends PropertyViewGroup,B extends PropertyViewGroup.Builder<G,B>>
Base
PropertyViewGroup builder. |
static interface |
PropertyViewGroup.PropertyViewGroupBuilder
PropertyViewGroup builder. |
static interface |
PropertyViewGroup.ViewComponentPropertyRenderer<T>
A
PropertyRenderer with a fixed ViewComponent rendering type. |
ValueHolder.MaySupportValueChangeMode, ValueHolder.ValueChangeEvent<V>, ValueHolder.ValueChangeListener<V>
Modifier and Type | Method and Description |
---|---|
static PropertyViewGroup.PropertyViewGroupBuilder |
builder()
Get a
PropertyViewGroup.Builder to create and setup a PropertyViewGroup . |
void |
clear()
Clears (reset the value) all the
ViewComponent s. |
com.holonplatform.core.property.PropertyBox |
getValue()
Get the current property values collected into a
PropertyBox , using the group configured properties as
property set. |
<T> Optional<ViewComponent<T>> |
getViewComponent(com.holonplatform.core.property.Property<T> property)
Get the
ViewComponent bound to given property , if any. |
Iterable<ViewComponent> |
getViewComponents()
Gets all the
ViewComponent s that have been bound to a property. |
void |
setValue(com.holonplatform.core.property.PropertyBox propertyBox)
Set the current property values using a
PropertyBox , loading the values to the available property bound
ViewComponent s through the ValueHolder.setValue(Object) method. |
<T> Stream<PropertyBinding<T,ViewComponent<T>>> |
stream()
Return a
Stream of the properties and their bound ViewComponent s of this view group. |
getProperties, hasProperty, propertyStream
addValueChangeListener, getEmptyValue, getOptionalValue, getValueIfPresent, isEmpty
Iterable<ViewComponent> getViewComponents()
ViewComponent
s that have been bound to a property.Iterable
on all bound ViewComponents<T> Optional<ViewComponent<T>> getViewComponent(com.holonplatform.core.property.Property<T> property)
ViewComponent
bound to given property
, if any.T
- Property typeproperty
- Property (not null)ViewComponent
bound to given property
<T> Stream<PropertyBinding<T,ViewComponent<T>>> stream()
Stream
of the properties and their bound ViewComponent
s of this view group.T
- Property typePropertyBinding
streamvoid clear()
ViewComponent
s.clear
in interface ValueHolder<com.holonplatform.core.property.PropertyBox>
com.holonplatform.core.property.PropertyBox getValue()
PropertyBox
, using the group configured properties as
property set.getValue
in interface ValueHolder<com.holonplatform.core.property.PropertyBox>
PropertyBox
containing the property values (never null)void setValue(com.holonplatform.core.property.PropertyBox propertyBox)
PropertyBox
, loading the values to the available property bound
ViewComponent
s through the ValueHolder.setValue(Object)
method.
Only the properties which belong to the group's property set are taken into account.
setValue
in interface ValueHolder<com.holonplatform.core.property.PropertyBox>
propertyBox
- the PropertyBox
which contains the property values to load. If null
, all
the ViewComponent
components are cleared.static PropertyViewGroup.PropertyViewGroupBuilder builder()
PropertyViewGroup.Builder
to create and setup a PropertyViewGroup
.PropertyViewGroup.PropertyViewGroupBuilder
builderCopyright © 2019 The Holon Platform. All rights reserved.