GWT 2.1.0

com.google.gwt.requestfactory.shared
Class Receiver<V>

java.lang.Object
  extended by com.google.gwt.requestfactory.shared.Receiver<V>
Type Parameters:
V - value type

public abstract class Receiver<V>
extends java.lang.Object

Implemented by objects that display values.


Constructor Summary
Receiver()
           
 
Method Summary
 void onFailure(ServerFailure error)
          Receives general failure notifications.
abstract  void onSuccess(V response)
          Called when a Request has been successfully executed on the server.
 void onViolation(java.util.Set<Violation> errors)
          Called if an object sent to the server could not be validated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Receiver

public Receiver()
Method Detail

onFailure

public void onFailure(ServerFailure error)
Receives general failure notifications. The default implementation throws a RuntimeException with the provided error message.


onSuccess

public abstract void onSuccess(V response)
Called when a Request has been successfully executed on the server.


onViolation

public void onViolation(java.util.Set<Violation> errors)
Called if an object sent to the server could not be validated. The default implementation calls onFailure(ServerFailure) if errors is not empty.


GWT 2.1.0