public class MonitoredCollection<E,C extends java.util.Collection<E>> extends java.lang.Object implements ObjectModificationsTracked<C>, java.io.Serializable
Constructor and Description |
---|
MonitoredCollection(C underlyingCollection) |
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addInstanceChangedHandler(ObjectChangedEventHandler<C> handler)
listen to changes of this particular instance.
|
HandlerRegistration |
addObjectChangedHandler(ObjectChangedEventHandler<C> handler)
listen to changes of this object.
|
void |
fireEvent(<any> event) |
C |
getUnderlyingCollection() |
boolean |
isModified() |
public MonitoredCollection(C underlyingCollection)
public void fireEvent(<any> event)
public boolean isModified()
isModified
in interface ObjectModificationsTracked<C extends java.util.Collection<E>>
public C getUnderlyingCollection()
public HandlerRegistration addObjectChangedHandler(ObjectChangedEventHandler<C> handler)
HasObjectChangedEventHandler
addObjectChangedHandler
in interface HasObjectChangedEventHandler<C extends java.util.Collection<E>>
public HandlerRegistration addInstanceChangedHandler(ObjectChangedEventHandler<C> handler)
HasObjectChangedEventHandler
addInstanceChangedHandler
in interface HasObjectChangedEventHandler<C extends java.util.Collection<E>>