public class UpdateListener extends java.lang.Object implements MapListener
addUpdateListener method. When the update event
occurs, that object's appropriate method is invoked.| Constructor and Description |
|---|
UpdateListener(IdMap map,
Tokener factory)
Instantiates a new update listener.
|
| Modifier and Type | Method and Description |
|---|---|
Entity |
change(java.lang.String property,
java.lang.Object source,
SendableEntityCreator creatorClass,
java.lang.Object oldValue,
java.lang.Object newValue) |
boolean |
change(java.lang.String property,
SendableEntityCreator creator,
Entity change,
java.lang.Object oldValue,
java.lang.Object newValue) |
java.lang.Object |
execute(Entity updateMessage,
Filter filter)
Execute.
|
Filter |
getFilter() |
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
boolean |
removeObj(java.lang.Object oldValue,
boolean destroy)
Remove the given object from the IdMap
|
SimpleList<UpdateAccumulate> |
resetNotification() |
boolean |
suspendNotification(UpdateAccumulate... accumulates)
Suspend notification.
|
UpdateListener |
withFilter(Filter filter) |
public boolean suspendNotification(UpdateAccumulate... accumulates)
suspendNotification in interface MapListeneraccumulates - Notification Listenerpublic SimpleList<UpdateAccumulate> resetNotification()
resetNotification in interface MapListenerpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpublic Entity change(java.lang.String property, java.lang.Object source, SendableEntityCreator creatorClass, java.lang.Object oldValue, java.lang.Object newValue)
public boolean change(java.lang.String property,
SendableEntityCreator creator,
Entity change,
java.lang.Object oldValue,
java.lang.Object newValue)
public java.lang.Object execute(Entity updateMessage, Filter filter)
execute in interface MapListenerupdateMessage - the update messagefilter - Filter for exclude UpdateMessagespublic UpdateListener withFilter(Filter filter)
withFilter in interface MapListenerpublic Filter getFilter()
getFilter in interface MapListenerpublic boolean removeObj(java.lang.Object oldValue,
boolean destroy)
oldValue - Object to removedestroy - switch for remove link from object