public abstract class SwingDBObjectPropertyListener extends DBObjectPropertyListener
To listen to all changes on an object use SwingDBObjectListener
Constructor and Description |
---|
SwingDBObjectPropertyListener(java.lang.String... properties)
Constructs a new listener that will be notified of changes to the
given properties.
|
Modifier and Type | Method and Description |
---|---|
protected 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.
|
protected abstract void |
updateUI(DBObject obj,
java.lang.String propertyName,
java.beans.PropertyChangeEvent pce)
This method is called with any information passed to
propertyChanged , but this method will be called on the event
thread. |
objectUpdated
public SwingDBObjectPropertyListener(java.lang.String... properties)
properties
- the properties to listen to, must not be nullprotected final void propertyChanged(DBObject obj, java.lang.String propertyName, java.beans.PropertyChangeEvent pce)
DBObjectPropertyListener
propertyChanged
in class DBObjectPropertyListener
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.propertyName
- the specific property specified in the constructor that
has resolved to this change.pce
- the details of the property changeprotected abstract void updateUI(DBObject obj, java.lang.String propertyName, java.beans.PropertyChangeEvent pce)
propertyChanged
, but this method will be called on the event
thread.obj
- the object the change is onpropertyName
- the property that has changedpce
- the details of the property change