public abstract class DBObjectPropertyListener extends DBObjectListener
| Constructor and Description |
|---|
DBObjectPropertyListener(java.lang.String... properties)
Constructs a new listener that will listen for the given properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
objectUpdated(DBObjectChange change)
Notifies the listener when an object is updated.
|
protected abstract void |
propertyChanged(DBObject obj, java.lang.String propertyName, java.beans.PropertyChangeEvent pce)
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)
DBObjectListenerobjectUpdated in class DBObjectListenerprotected abstract void propertyChanged(DBObject obj, java.lang.String propertyName, java.beans.PropertyChangeEvent pce)
obj - the object the property has changed onpropertyName - the name of the property that has changedpce - the details of the property change