T - the model typepublic class ModelWriteEvent<T> extends com.google.gwt.event.shared.GwtEvent<ModelWriteHandler<T>>
| Modifier | Constructor and Description |
|---|---|
protected |
ModelWriteEvent(T model,
String representation)
Creates a new event.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatch(ModelWriteHandler<T> handler) |
static <T> void |
fire(HasModelWriteHandler<T> source,
T model,
String representation)
Fires a
ModelWriteEvent on all registered handlers. |
com.google.gwt.event.shared.GwtEvent.Type<ModelWriteHandler<T>> |
getAssociatedType() |
T |
getModel()
Returns the model.
|
String |
getRepresentation()
Returns the string representation of the model.
|
static com.google.gwt.event.shared.GwtEvent.Type<ModelWriteHandler<?>> |
getType()
Gets the type associated with this event.
|
String |
toDebugString() |
public static <T> void fire(HasModelWriteHandler<T> source, T model, String representation)
ModelWriteEvent on all registered handlers. If no such
handlers exist, this method will do nothing.T - the model typesource - the source of the handlersmodel - the modelrepresentation - the string representationpublic static com.google.gwt.event.shared.GwtEvent.Type<ModelWriteHandler<?>> getType()
public final com.google.gwt.event.shared.GwtEvent.Type<ModelWriteHandler<T>> getAssociatedType()
getAssociatedType in class com.google.gwt.event.shared.GwtEvent<ModelWriteHandler<T>>public T getModel()
public String getRepresentation()
public String toDebugString()
toDebugString in class com.google.web.bindery.event.shared.Event<ModelWriteHandler<T>>protected void dispatch(ModelWriteHandler<T> handler)
dispatch in class com.google.gwt.event.shared.GwtEvent<ModelWriteHandler<T>>Copyright © 2012 Harald Pehl. All Rights Reserved.