T - the model typeC - the context typepublic class ModelReadEvent<T,C> extends com.google.gwt.event.shared.GwtEvent<ModelReadHandler<T,C>>
| Modifier | Constructor and Description |
|---|---|
protected |
ModelReadEvent(T model,
C context)
Creates a new event.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatch(ModelReadHandler<T,C> handler) |
static <T,C> void |
fire(HasModelReadHandler<T,C> source,
T model,
C context)
Fires a
ModelReadEvent on all registered handlers. |
com.google.gwt.event.shared.GwtEvent.Type<ModelReadHandler<T,C>> |
getAssociatedType() |
C |
getContext()
Returns the context i.e the JSONObject or XML element.
|
T |
getModel()
Returns the model.
|
static com.google.gwt.event.shared.GwtEvent.Type<ModelReadHandler<?,?>> |
getType()
Gets the type associated with this event.
|
String |
toDebugString() |
public static <T,C> void fire(HasModelReadHandler<T,C> source, T model, C context)
ModelReadEvent on all registered handlers. If no such
handlers exist, this method will do nothing.T - the model typeC - the context typesource - the source of the handlersmodel - the modelpublic static com.google.gwt.event.shared.GwtEvent.Type<ModelReadHandler<?,?>> getType()
public final com.google.gwt.event.shared.GwtEvent.Type<ModelReadHandler<T,C>> getAssociatedType()
getAssociatedType in class com.google.gwt.event.shared.GwtEvent<ModelReadHandler<T,C>>public T getModel()
public C getContext()
public String toDebugString()
toDebugString in class com.google.web.bindery.event.shared.Event<ModelReadHandler<T,C>>protected void dispatch(ModelReadHandler<T,C> handler)
dispatch in class com.google.gwt.event.shared.GwtEvent<ModelReadHandler<T,C>>Copyright © 2012 Harald Pehl. All Rights Reserved.