Class PropertyChangeProxyTargetBinding

java.lang.Object
org.apache.groovy.swing.binding.PropertyChangeProxyTargetBinding
All Implemented Interfaces:
TargetBinding

public class PropertyChangeProxyTargetBinding extends Object implements TargetBinding
Adapts a PropertyChangeListener so it can be used as a TargetBinding.
  • 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 source
      propertyName - the property name to report
      listener - the listener to notify
  • Method Details

    • updateTargetValue

      public void updateTargetValue(Object value)
      Forwards a synthetic property-change event containing the supplied target value.
      Specified by:
      updateTargetValue in interface TargetBinding
      Parameters:
      value - the new property value to report