org.fusesource.restygwt.example.client.event
Class ModelChangeEvent

java.lang.Object
  extended by com.google.gwt.event.shared.GwtEvent<ModelChangedEventHandler>
      extended by org.fusesource.restygwt.example.client.event.ModelChangeEvent

public class ModelChangeEvent
extends GwtEvent<ModelChangedEventHandler>

generic ModelChangeEvent with identifier for the matching domain class. unfortinately its not possible to have different eventclasses for different domain-updates due to the lack of reflection. could do this with a generator class, maybe later.. taken from http://stackoverflow.com/questions/2951621/gwt-custom-events/2967359#2967359

Author:
andi

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
 
Field Summary
static GwtEvent.Type<ModelChangedEventHandler> TYPE
           
 
Constructor Summary
ModelChangeEvent(String domainIdentifier)
           
 
Method Summary
protected  void dispatch(ModelChangedEventHandler handler)
           
 GwtEvent.Type<ModelChangedEventHandler> getAssociatedType()
           
 String getDomain()
           
 String toString()
           
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive, toDebugString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static GwtEvent.Type<ModelChangedEventHandler> TYPE
Constructor Detail

ModelChangeEvent

public ModelChangeEvent(String domainIdentifier)
Method Detail

getDomain

public String getDomain()

getAssociatedType

public GwtEvent.Type<ModelChangedEventHandler> getAssociatedType()
Specified by:
getAssociatedType in class GwtEvent<ModelChangedEventHandler>

dispatch

protected void dispatch(ModelChangedEventHandler handler)
Specified by:
dispatch in class GwtEvent<ModelChangedEventHandler>

toString

public String toString()
Overrides:
toString in class GwtEvent<ModelChangedEventHandler>


Copyright © 2010-2011 FuseSource, Corp.. All Rights Reserved.