|
GWT 0.0.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.editor.client.testing.MockSimpleBeanEditorDriver<T,E>
T
- the type being editedE
- the Editor typepublic class MockSimpleBeanEditorDriver<T,E extends Editor<T>>
A no-op implementation of SimpleBeanEditorDriver
that records its
inputs.
Constructor Summary | |
---|---|
MockSimpleBeanEditorDriver()
|
Method Summary | |
---|---|
void |
edit(T object)
Records object . |
T |
flush()
Returns null or the last value provided to edit(T) . |
E |
getEditor()
Returns null or the last value provided to initialize(E)
. |
java.util.List<EditorError> |
getErrors()
Returns an empty list. |
T |
getObject()
Returns null or the last value provided to edit(T) . |
boolean |
hasErrors()
Returns false . |
void |
initialize(E editor)
Records editor . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockSimpleBeanEditorDriver()
Method Detail |
---|
public void edit(T object)
object
.
edit
in interface SimpleBeanEditorDriver<T,E extends Editor<T>>
object
- the object providing input datapublic T flush()
null
or the last value provided to edit(T)
.
flush
in interface SimpleBeanEditorDriver<T,E extends Editor<T>>
SimpleBeanEditorDriver.edit(T)
public E getEditor()
null
or the last value provided to initialize(E)
.
public java.util.List<EditorError> getErrors()
getErrors
in interface SimpleBeanEditorDriver<T,E extends Editor<T>>
EditorError
instancespublic T getObject()
null
or the last value provided to edit(T)
.
public boolean hasErrors()
false
.
hasErrors
in interface SimpleBeanEditorDriver<T,E extends Editor<T>>
true
if errors are presentpublic void initialize(E editor)
editor
.
initialize
in interface SimpleBeanEditorDriver<T,E extends Editor<T>>
editor
- the Editor to populate
|
GWT 0.0.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |