Class EntityProxyChange<P extends EntityProxy>
java.lang.Object
com.google.web.bindery.event.shared.Event<EntityProxyChange.Handler<P>>
com.google.web.bindery.requestfactory.shared.EntityProxyChange<P>
- Type Parameters:
P- the type of the proxy
Event posted by a
RequestFactory when changes to an entity are
detected. Provides a WriteOperation value describing the change, and
the EntityProxyId of the entity in question.
EntityProxyChange events are posted with the relevant EntityProxy Class as
their source, allowing handlers to register for changes only of the type they
care about via registerForProxyType(EventBus, Class, Handler).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceEntityProxyChange.Handler<P extends EntityProxy>Implemented by methods that handle EntityProxyChange events.Nested classes/interfaces inherited from class com.google.web.bindery.event.shared.Event
Event.Type<H> -
Constructor Summary
ConstructorsConstructorDescriptionEntityProxyChange(P proxy, WriteOperation writeOperation) Constructs an EntityProxyChange object. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddispatch(EntityProxyChange.Handler<P> handler) Implemented by subclasses to to invoke their handlers in a type safe manner.Returns the type associated with this instance.Returns an unpopulated copy of the changed proxy — all properties are undefined except its id.Returns theWriteOperationassociated with this instance.static <P extends EntityProxy>
HandlerRegistrationregisterForProxyType(EventBus eventBus, Class<P> proxyType, EntityProxyChange.Handler<P> handler) Register a handler for a EntityProxyChange events for a particular proxy class.Methods inherited from class com.google.web.bindery.event.shared.Event
getSource, setSource, toDebugString, toString
-
Constructor Details
-
Method Details
-
getAssociatedType
Returns the type associated with this instance.- Specified by:
getAssociatedTypein classEvent<EntityProxyChange.Handler<P extends EntityProxy>>- Returns:
- an instance of
Typeof type Handler<Pinvalid input: '>'
-
getProxyId
Returns an unpopulated copy of the changed proxy — all properties are undefined except its id.- Returns:
- an instance of
EntityProxyId<P>
-
getWriteOperation
Returns theWriteOperationassociated with this instance.- Returns:
- a
WriteOperationinstance