Package org.apache.groovy.swing.binding
Class PropertyChangeProxyTargetBinding
java.lang.Object
org.apache.groovy.swing.binding.PropertyChangeProxyTargetBinding
- All Implemented Interfaces:
TargetBinding
Adapts a
PropertyChangeListener so it can be used as a TargetBinding.-
Constructor Summary
ConstructorsConstructorDescriptionPropertyChangeProxyTargetBinding(Object proxyObject, String propertyName, PropertyChangeListener listener) Creates a proxy target binding that synthesizes property change events. -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateTargetValue(Object value) Forwards a synthetic property-change event containing the supplied target value.
-
Constructor Details
-
PropertyChangeProxyTargetBinding
public PropertyChangeProxyTargetBinding(Object proxyObject, String propertyName, PropertyChangeListener listener) Creates a proxy target binding that synthesizes property change events.- Parameters:
proxyObject- the object to report as the event sourcepropertyName- the property name to reportlistener- the listener to notify
-
-
Method Details
-
updateTargetValue
Forwards a synthetic property-change event containing the supplied target value.- Specified by:
updateTargetValuein interfaceTargetBinding- Parameters:
value- the new property value to report
-