T - the type being editedE - the Editor for the typepublic interface SimpleBeanEditorDriver<T,E extends Editor<? super T>> extends EditorDriver<T>
EditorDelegate
provided from this driver has a no-op implementation of
EditorDelegate.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();
}
Note that this interface is intended to be implemented by generated code and is subject to API expansion in the future.
MockSimpleBeanEditorDriver| Modifier and Type | Method and Description |
|---|---|
void |
edit(T object)
Push the data in an object graph into the Editor given to
initialize(E). |
T |
flush()
Update the object being edited with the current state of the Editor.
|
void |
initialize(E editor)
Initialize the editor driver.
|
accept, getErrors, hasErrors, isDirty, setConstraintViolationsvoid edit(T object)
initialize(E).object - the object providing input datajava.lang.IllegalStateException - if initialize(E) has not been calledT flush()
flush in interface EditorDriver<T>edit(Object)java.lang.IllegalStateException - if edit(Object) has not been calledvoid initialize(E editor)
editor - the Editor to populate