public final class InstanceContainer<T> extends java.lang.Object implements HasObjectChangedEventHandler<T>
Constructor and Description |
---|
InstanceContainer(T instance) |
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addInstanceChangedHandler(ObjectChangedEventHandler<T> handler)
listen to changes of this particular instance.
|
HandlerRegistration |
addObjectChangedHandler(ObjectChangedEventHandler<T> handler)
listen to changes of this object.
|
void |
fireEvent(<any> event) |
T |
getInstance() |
public InstanceContainer(T instance)
public T getInstance()
public void fireEvent(<any> event)
public HandlerRegistration addObjectChangedHandler(ObjectChangedEventHandler<T> handler)
HasObjectChangedEventHandler
addObjectChangedHandler
in interface HasObjectChangedEventHandler<T>
public HandlerRegistration addInstanceChangedHandler(ObjectChangedEventHandler<T> handler)
HasObjectChangedEventHandler
addInstanceChangedHandler
in interface HasObjectChangedEventHandler<T>