public abstract class DBObjectPropertyListener extends DBObjectListener
Owned objects that are changed do not result in a PropertyChangeEvent,
so specific property paths underneath owned objects need to be listened
to if required. See
|Constructor and Description|
Constructs a new listener that will listen for the given properties.
|Modifier and Type||Method and Description|
Notifies the listener when an object is updated.
Called whenever a DBObjectChange event is intercepted that includes a change for one of the properties we are listening for.
public DBObjectPropertyListener(java.lang.String... properties)
Each property in the array can be a property path, but the elements of the array are treated as separate properties.
properties- a list of properties to listen for a change on.
public final void objectUpdated(DBObjectChange change)
protected abstract void propertyChanged(DBObject obj, java.lang.String property, java.beans.PropertyChangeEvent pce)
obj- the object we are listening to. If we are listening to a path this might be an ancestor of the object in the change event.
property- the specific property specified in the constructor that has resolved to this change.
pce- the details of the property change