|
GWT 2.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.requestfactory.client.testing.MockRequestFactoryEditorDriver<P,E>
P
- the Proxy type being editedE
- the Editor type
@Deprecated public class MockRequestFactoryEditorDriver<P,E extends Editor<P>>
A no-op implementation of RequestFactoryEditorDriver
that records its
inputs.
RequestFactory has moved to
com.google.web.bindery.requestfactory
. This package will be
removed in a future version of GWT.
Constructor Summary | |
---|---|
MockRequestFactoryEditorDriver()
Deprecated. |
Method Summary | |
---|---|
void |
accept(EditorVisitor visitor)
Deprecated. A no-op method. |
void |
display(P proxy)
Deprecated. Records its arguments. |
void |
edit(P proxy,
RequestContext saveRequest)
Deprecated. Records its arguments. |
RequestContext |
flush()
Deprecated. Returns null or the last value recorded. |
E |
getEditor()
Deprecated. Returns null or the last value recorded. |
java.util.List<EditorError> |
getErrors()
Deprecated. Returns an empty list. |
EventBus |
getEventBus()
Deprecated. Returns null or the last value recorded. |
java.lang.String[] |
getPaths()
Deprecated. Returns a zero-length array. |
P |
getProxy()
Deprecated. Returns null or the last value recorded. |
RequestFactory |
getRequestFactory()
Deprecated. Returns null or the last value recorded. |
RequestContext |
getSaveRequest()
Deprecated. Returns null or the last value recorded. |
boolean |
hasErrors()
Deprecated. Returns false . |
void |
initialize(E editor)
Deprecated. Initializes a driver that will not be able to support subscriptions. |
void |
initialize(EventBus eventBus,
RequestFactory requestFactory,
E editor)
Deprecated. Records its arguments. |
void |
initialize(RequestFactory requestFactory,
E editor)
Deprecated. Initializes a driver with the editor it will run, and a RequestFactory to use for subscription services. |
boolean |
isDirty()
Deprecated. Returns false . |
boolean |
setConstraintViolations(java.lang.Iterable<ConstraintViolation<?>> violations)
Deprecated. A no-op method that always returns false. |
boolean |
setViolations(java.lang.Iterable<Violation> errors)
Deprecated. A no-op method that always returns false. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockRequestFactoryEditorDriver()
Method Detail |
---|
public void accept(EditorVisitor visitor)
accept
in interface EditorDriver<RequestContext>
public void display(P proxy)
display
in interface RequestFactoryEditorDriver<P,E extends Editor<P>>
proxy
- a Proxy of type Ppublic void edit(P proxy, RequestContext saveRequest)
edit
in interface RequestFactoryEditorDriver<P,E extends Editor<P>>
proxy
- the proxy to be editedsaveRequest
- the request context that will accumulate edits and is
returned form RequestFactoryEditorDriver.flush()
public RequestContext flush()
null
or the last value recorded.
flush
in interface EditorDriver<RequestContext>
flush
in interface RequestFactoryEditorDriver<P,E extends Editor<P>>
RequestFactoryEditorDriver.edit(Object, RequestContext)
public E getEditor()
null
or the last value recorded.
public java.util.List<EditorError> getErrors()
getErrors
in interface EditorDriver<RequestContext>
EditorError
instancespublic EventBus getEventBus()
null
or the last value recorded.
public java.lang.String[] getPaths()
getPaths
in interface RequestFactoryEditorDriver<P,E extends Editor<P>>
public P getProxy()
null
or the last value recorded.
public RequestFactory getRequestFactory()
null
or the last value recorded.
public RequestContext getSaveRequest()
null
or the last value recorded.
public boolean hasErrors()
false
.
hasErrors
in interface EditorDriver<RequestContext>
true
if errors are presentpublic void initialize(E editor)
RequestFactoryEditorDriver
EditorDelegate.subscribe()
will do
nothing.
initialize
in interface RequestFactoryEditorDriver<P,E extends Editor<P>>
editor
- an Editor
of type Epublic void initialize(EventBus eventBus, RequestFactory requestFactory, E editor)
initialize
in interface RequestFactoryEditorDriver<P,E extends Editor<P>>
eventBus
- the EventBus
requestFactory
- a RequestFactory
instanceeditor
- an Editor
of type EEditorDelegate.subscribe()
,
ResettableEventBus
public void initialize(RequestFactory requestFactory, E editor)
RequestFactoryEditorDriver
initialize
in interface RequestFactoryEditorDriver<P,E extends Editor<P>>
requestFactory
- a RequestFactory
instanceeditor
- an Editor
of type EEditorDelegate.subscribe()
public boolean isDirty()
false
.
isDirty
in interface EditorDriver<RequestContext>
EditorDelegate.setDirty(boolean)
public boolean setConstraintViolations(java.lang.Iterable<ConstraintViolation<?>> violations)
setConstraintViolations
in interface EditorDriver<RequestContext>
violations
- an Iterable over ConstraintViolation
instances
true
if there were any unconsumed EditorErrors which
can be retrieved from EditorDriver.getErrors()
public boolean setViolations(java.lang.Iterable<Violation> errors)
setViolations
in interface RequestFactoryEditorDriver<P,E extends Editor<P>>
errors
- an Iterable over Violation
instances
true
if there were any unconsumed EditorErrors which
can be retrieved from EditorDriver.getErrors()
|
GWT 2.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |