com.google.gwt.editor.client.SimpleBeanEditorDriver<T, E extends com.google.gwt.editor.client.Editor<? super T>> |
Known Indirect Subclasses
AbstractSimpleBeanEditorDriver<T, E extends Editor<T>>,
MockSimpleBeanEditorDriver<T, E extends Editor<T>>
|
Automates editing of simple bean-like objects. The EditorDelegate
provided from this driver has a no-op implementation of
subscribe()
.
interface MyDriver extends SimpleBeanEditorDriver<MyObject, MyObjectEditor> {} MyDriver instance = GWT.create(MyDriver.class); { MyObjectEditor editor = new MyObjectEditor(); instance.initialize(editor); // Do stuff instance.edit(myObjectInstance); // Do more stuff instance.flush(); }
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Push the data in an object graph into the Editor given to
initialize(E) . | |||||||||||
Update the object being edited with the current state of the Editor.
| |||||||||||
Returns any unconsumed EditorErrors from the last call to
flush() . | |||||||||||
Indicates if the last call to
flush() resulted in any errors. | |||||||||||
Initialize the editor driver.
|
Push the data in an object graph into the Editor given to
initialize(E)
.
object | the object providing input data |
---|
IllegalStateException | if initialize(E) has not been called
|
---|
Update the object being edited with the current state of the Editor.
edit(T)
IllegalStateException | if edit(T) has not been called
|
---|
Returns any unconsumed EditorErrors from the last call to flush()
.
EditorError
instances
Indicates if the last call to flush()
resulted in any errors.
true
if errors are present
Initialize the editor driver.
editor | the Editor to populate |
---|