public abstract class

AbstractSimpleBeanEditorDriver

extends Object
implements SimpleBeanEditorDriver<T, E extends Editor<? super T>>
java.lang.Object
   ↳ com.google.gwt.editor.client.impl.AbstractSimpleBeanEditorDriver<T, E extends com.google.gwt.editor.client.Editor<T>>

Class Overview

A base implementation class for generated SimpleBeanEditorDriver implementations.

Summary

Public Constructors
AbstractSimpleBeanEditorDriver()
Public Methods
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.
List<EditorError> getErrors()
Returns any unconsumed EditorErrors from the last call to flush().
boolean hasErrors()
Indicates if the last call to flush() resulted in any errors.
void initialize(E editor)
Initialize the editor driver.
Protected Methods
abstract SimpleBeanEditorDelegate<T, E> createDelegate()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.editor.client.SimpleBeanEditorDriver

Public Constructors

public AbstractSimpleBeanEditorDriver ()

Public Methods

public 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

public T flush ()

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

Returns

public List<EditorError> getErrors ()

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

Returns

public boolean hasErrors ()

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

Returns
  • true if errors are present

public void initialize (E editor)

Initialize the editor driver.

Parameters
editor the Editor to populate

Protected Methods

protected abstract SimpleBeanEditorDelegate<T, E> createDelegate ()