com.google.gwt.requestfactory.client.RequestFactoryEditorDriver<P, E extends com.google.gwt.editor.client.Editor<? super P>> |
Known Indirect Subclasses
AbstractRequestFactoryEditorDriver<R, E extends Editor<R>>,
MockRequestFactoryEditorDriver<P, E extends Editor<P>>
|
The interface that links RequestFactory and the Editor framework together. Used for configuration and lifecycle control. Expected that this will be created with
interface MyRFED extends RequestFactoryEditorDriver<MyObjectProxy, MyObjectEditor> {} MyRFED instance = GWT.create(MyRFED.class); { instance.initialize(.....); myRequest.with(instance.getPaths()); // Fire the request, in the callback instance.edit(retrievedRecord); // Control when the request is sent instance.flush().fire(new Receiver {...}); }
See com.google.gwt.requestfactory.client.testing.MockRequestFactoryEditorDriver
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Start driving the Editor and its sub-editors with data for display-only
mode.
| |||||||||||
Start driving the Editor and its sub-editors with data.
| |||||||||||
Ensures that the Editor passed into
initialize(E) and its
sub-editors, if any, have synced their UI state by invoking flushing them
in a depth-first manner. | |||||||||||
Returns any unconsumed
EditorErrors from the last call
to flush() . | |||||||||||
Returns a new array containing the request paths.
| |||||||||||
Indicates if the last call to
flush() resulted in any errors. | |||||||||||
Initializes a driver that will not be able to support subscriptions.
| |||||||||||
Overload of
initialize(RequestFactory, Editor) to allow a modified
EventBus to be monitored for subscription services. | |||||||||||
Initializes a driver with the editor it will run, and a RequestFactory to
use for subscription services.
| |||||||||||
Show Violations returned from an attempt to submit a request.
|
Start driving the Editor and its sub-editors with data for display-only mode.
proxy | a Proxy of type P |
---|
Start driving the Editor and its sub-editors with data. A
RequestContext
is required to provide context for the changes to
the proxy (see edit(T)
. Note that this driver will
not fire the request.
proxy | the proxy to be edited |
---|---|
request | the request context that will accumulate edits and is
returned form flush()
|
Ensures that the Editor passed into initialize(E)
and its
sub-editors, if any, have synced their UI state by invoking flushing them
in a depth-first manner.
edit(P, RequestContext)
IllegalStateException | if edit(Object, RequestContext) has
not been called with a non-null RequestContext
|
---|
Returns any unconsumed EditorErrors
from the last call
to flush()
.
EditorError
instances
Returns a new array containing the request paths.
Indicates if the last call to flush()
resulted in any errors.
true if errors are present
Initializes a driver that will not be able to support subscriptions. Calls
to subscribe()
will do
nothing.
editor | an Editor of type E
|
---|
Overload of initialize(RequestFactory, Editor)
to allow a modified
EventBus
to be monitored for subscription services.
eventBus | the EventBus |
---|---|
requestFactory | a RequestFactory instance |
editor | an Editor of type E |
Initializes a driver with the editor it will run, and a RequestFactory to use for subscription services.
requestFactory | a RequestFactory instance |
---|---|
editor | an Editor of type E |
Show Violations returned from an attempt to submit a request. The
violations will be converted into EditorError
objects whose
getUserData()
method can be used to
access the original Violation object.
errors | a Iterable over Violation instances |
---|
true
if there were any unconsumed EditorErrors which
can be retrieved from getErrors()