public interface PropertyInputBinder extends PropertySetBound
Input
components.
Provides methods to obtain the property set and the property-input bindings, for example to get the Input
bound to a specific property.
Modifier and Type | Interface and Description |
---|---|
static interface |
PropertyInputBinder.PropertyInputValueChangeListener<V>
A listener for
Input value change events when the Input is bound to a Property within a
PropertyInputBinder component. |
Modifier and Type | Method and Description |
---|---|
<T> Optional<Input<T>> |
getInput(com.holonplatform.core.property.Property<T> property)
Get the
Input bound to given property , if any. |
Iterable<Input<?>> |
getInputs()
Gets all the
Input s that have been bound to a property. |
default void |
refresh()
Refresh the value of all available
Input s, using current values. |
void |
refresh(boolean readOnly)
Refresh the value of all available
Input s, using current values. |
<T> void |
refresh(com.holonplatform.core.property.Property<T> property)
Refresh the value of the
Input bound to given property , if available, using currently
available values. |
default <T> Input<T> |
requireInput(com.holonplatform.core.property.Property<T> property)
Get the
Input bound to given property , if any. |
<T> Stream<PropertyBinding<T,Input<T>>> |
stream()
|
getProperties, hasProperty, propertyStream
<T> Optional<Input<T>> getInput(com.holonplatform.core.property.Property<T> property)
Input
bound to given property
, if any.default <T> Input<T> requireInput(com.holonplatform.core.property.Property<T> property)
Input
bound to given property
, if any. If not available, a
Property.PropertyNotFoundException
is thrown.<T> Stream<PropertyBinding<T,Input<T>>> stream()
T
- Property typePropertyBinding
streamdefault void refresh()
Input
s, using current values.void refresh(boolean readOnly)
Input
s, using current values.readOnly
- true
to refresh only the Input
s bound to read-only properties,
false
to refresh all<T> void refresh(com.holonplatform.core.property.Property<T> property)
Input
bound to given property
, if available, using currently
available values.
For read-only properties such as VirtualProperty
s, this has the effect to recalculate the virtual value
according to the values currently set in all the binder inputs.
T
- Property typeproperty
- The property for which to refresh the bound Input
Copyright © 2019 The Holon Platform. All rights reserved.