public class

EntityProxyChange

extends GwtEvent<H extends EventHandler>
java.lang.Object
   ↳ com.google.gwt.event.shared.GwtEvent<H extends com.google.gwt.event.shared.EventHandler>
     ↳ com.google.gwt.requestfactory.shared.EntityProxyChange<P extends com.google.gwt.requestfactory.shared.EntityProxy>

Class Overview

Abstract base class for an event announcing changes to an EntityProxy.

Note that this event includes an unpopulated copy of the changed proxy — all properties are undefined except it's id. That is, the event includes only enough information for receivers to issue requests to get themselves fresh copies of the proxy.

TODO: use ProxyId rather than an empty proxy

Summary

Nested Classes
interface EntityProxyChange.Handler<P extends EntityProxy> Implemented by methods that handle EntityProxyChange events. 
Public Constructors
EntityProxyChange(P proxy, WriteOperation writeOperation)
Constructs an EntityProxyChange object.
Public Methods
Type<Handler<P>> getAssociatedType()
Returns the type associated with this instance.
EntityProxyId<P> getProxyId()
Returns an unpopulated copy of the changed proxy — all properties are undefined except its id.
WriteOperation getWriteOperation()
Returns the WriteOperation associated with this instance.
static <P extends EntityProxy> HandlerRegistration registerForProxyType(EventBus eventBus, Class<P> proxyType, Handler<P> handler)
Register a handler for a EntityProxyChange events for a particular proxy class.
Protected Methods
void dispatch(Handler<P> handler)
Should only be called by HandlerManager.
[Expand]
Inherited Methods
From class com.google.gwt.event.shared.GwtEvent
From class java.lang.Object

Public Constructors

public EntityProxyChange (P proxy, WriteOperation writeOperation)

Constructs an EntityProxyChange object.

Parameters
proxy an EntityProxy instance of type P
writeOperation a WriteOperation instance

Public Methods

public Type<Handler<P>> getAssociatedType ()

Returns the type associated with this instance.

Returns

public EntityProxyId<P> getProxyId ()

Returns an unpopulated copy of the changed proxy — all properties are undefined except its id.

Returns

public WriteOperation getWriteOperation ()

Returns the WriteOperation associated with this instance.

Returns

public static HandlerRegistration registerForProxyType (EventBus eventBus, Class<P> proxyType, Handler<P> handler)

Register a handler for a EntityProxyChange events for a particular proxy class.

Parameters
eventBus the EventBus
proxyType a Class instance of type P
handler an EntityProxyChange.Handler instance of type P
Returns

Protected Methods

protected void dispatch (Handler<P> handler)

Should only be called by HandlerManager. In other words, do not use or call.

Parameters
handler handler