public class

MockSimpleBeanEditorDriver

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

Class Overview

A no-op implementation of SimpleBeanEditorDriver that records its inputs.

Summary

Public Constructors
MockSimpleBeanEditorDriver()
Public Methods
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) .
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.editor.client.SimpleBeanEditorDriver

Public Constructors

public MockSimpleBeanEditorDriver ()

Public Methods

public void edit (T object)

Records object.

Parameters
object the object providing input data

public T flush ()

Returns null or the last value provided to edit(T).

Returns

public E getEditor ()

Returns null or the last value provided to initialize(E) .

public List<EditorError> getErrors ()

Returns an empty list.

Returns

public T getObject ()

Returns null or the last value provided to edit(T).

public boolean hasErrors ()

Returns false.

Returns
  • true if errors are present

public void initialize (E editor)

Records editor.

Parameters
editor the Editor to populate