public class PropertyBinding
extends Object
implements SourceBinding, TargetBinding, TriggerBinding
Binds directly to a bean property and can act as a source, target, or trigger binding.
| Modifiers | Name | Description |
|---|---|---|
enum |
PropertyBinding.UpdateStrategy |
Defines the thread on which target updates should run. |
| Constructor and description |
|---|
PropertyBinding(Object bean, String propertyName)Creates a property binding with the default update strategy for the bean type. |
PropertyBinding(Object bean, String propertyName, String updateStrategy)Creates a property binding using a named update strategy. |
PropertyBinding(Object bean, String propertyName, PropertyBinding.UpdateStrategy updateStrategy)Creates a property binding using an explicit update strategy. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public FullBinding |
createBinding(SourceBinding source, TargetBinding target)Creates a property-change-aware full binding rooted at this property. |
|
public Object |
getBean()Returns the bean that owns the bound property. |
|
public String |
getPropertyName()Returns the name of the bound property. |
|
public Object |
getSourceValue()Reads the current value of the bound property from the bean. |
|
public PropertyBinding.UpdateStrategy |
getUpdateStrategy()Returns the threading strategy used when applying target updates. |
|
public boolean |
isNonChangeCheck()Returns whether value-equality checks should suppress redundant updates. |
|
public void |
setBean(Object bean)Replaces the bean that owns the bound property. |
|
public void |
setNonChangeCheck(boolean nonChangeCheck)Enables or disables suppression of redundant equal-value updates. |
|
public void |
setPropertyName(String propertyName)Replaces the name of the bound property. |
|
public void |
updateTargetValue(Object newValue)Applies a new value to the bound property using the configured update strategy. |
Creates a property binding with the default update strategy for the bean type.
bean - the bean that owns the propertypropertyName - the property nameCreates a property binding using a named update strategy.
bean - the bean that owns the propertypropertyName - the property nameupdateStrategy - the named update strategy, or nullCreates a property binding using an explicit update strategy.
bean - the bean that owns the propertypropertyName - the property nameupdateStrategy - the update strategy, or null for the defaultCreates a property-change-aware full binding rooted at this property.
source - the source bindingtarget - the target bindingReturns the bean that owns the bound property.
Returns the name of the bound property.
Reads the current value of the bound property from the bean.
Returns the threading strategy used when applying target updates.
Returns whether value-equality checks should suppress redundant updates.
true when redundant updates should be suppressedReplaces the bean that owns the bound property.
bean - the new beanEnables or disables suppression of redundant equal-value updates.
nonChangeCheck - true to suppress redundant equal-value updatesReplaces the name of the bound property.
propertyName - the new property nameApplies a new value to the bound property using the configured update strategy.
newValue - the new property valueCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.