PropertySynchronizer Class
- public class PropertySynchronizer
extends Object
This object can be used to keep two properties in sync. when one changes, the other is set to the same value.
Care is taken to prevent looping.
-
Hierarchy
-
Object
PropertySynchronizer
public void |
-
startSynchronizing ()
- Insure that both properties remain the same follwing this call.
|
public void |
-
stopSynchronizing ()
- Stop monitoring properties and keeping them in sync.
|
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertySynchronizer
public PropertySynchronizer(IPropertySupport
ps1,
String
sProperty1,
IPropertySupport
ps2,
String
sProperty2)
- Construct a property synchronizer that keeps two properties on two objects in sync
PropertySynchronizer
public PropertySynchronizer(IPropertySupport
ps,
String
sProperty1,
String
sProperty2)
- Construct a property synchronizer that keeps two properties on the same object in sync
startSynchronizing() Method
public void startSynchronizing()
Insure that both properties remain the same follwing this call. Note that this method does not verify
that the properties currently have the same value. It merely insures that after this method call, all changes
will be propogated.
stopSynchronizing() Method
public void stopSynchronizing()
Stop monitoring properties and keeping them in sync.