|
GWT 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RequestContext
The base interface for RequestFactory service endpoints.
| Method Summary | ||
|---|---|---|
|
create(java.lang.Class<T> clazz)
Returns a new mutable proxy that this request can carry to the server, perhaps to be persisted. |
|
|
edit(T object)
Returns a mutable version of the proxy, whose mutations will accumulate in this context. |
|
void |
fire()
Send the accumulated changes and method invocations associated with the RequestContext. |
|
void |
fire(Receiver<java.lang.Void> receiver)
For receiving errors or validation failures only. |
|
boolean |
isChanged()
Returns true if any changes have been made to proxies mutable under this context. |
|
| Method Detail |
|---|
<T extends EntityProxy> T create(java.lang.Class<T> clazz)
<T extends EntityProxy> T edit(T object)
void fire()
If Request.to(Receiver) has not been called, this method will
install a default receiver that will throw a RuntimeException if there is a
server failure.
void fire(Receiver<java.lang.Void> receiver)
java.lang.IllegalArgumentException - if receiver is
nullboolean isChanged()
String name = bar.getName();
bar.setName("something else");
assertTrue(context.isChanged());
bar.setName(name);
assertFalse(context.isChanged());
|
GWT 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||