public interface

SimpleBeanEditorDriver

com.google.gwt.editor.client.SimpleBeanEditorDriver<T, E extends com.google.gwt.editor.client.Editor<? super T>>
Known Indirect Subclasses

Class Overview

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();
 }
 

Summary

Public Methods
abstract void edit(T object)
Push the data in an object graph into the Editor given to initialize(E).
abstract T flush()
Update the object being edited with the current state of the Editor.
abstract List<EditorError> getErrors()
Returns any unconsumed EditorErrors from the last call to flush().
abstract boolean hasErrors()
Indicates if the last call to flush() resulted in any errors.
abstract void initialize(E editor)
Initialize the editor driver.

Public Methods

public abstract void edit (T object)

Push the data in an object graph into the Editor given to initialize(E).

Parameters
object the object providing input data
Throws
IllegalStateException if initialize(E) has not been called

public abstract T flush ()

Update the object being edited with the current state of the Editor.

Returns
Throws
IllegalStateException if edit(T) has not been called

public abstract List<EditorError> getErrors ()

Returns any unconsumed EditorErrors from the last call to flush().

Returns

public abstract boolean hasErrors ()

Indicates if the last call to flush() resulted in any errors.

Returns
  • true if errors are present

public abstract void initialize (E editor)

Initialize the editor driver.

Parameters
editor the Editor to populate