T - the type being editedpublic class FakeEditorSource<T> extends EditorSource<FakeLeafValueEditor<T>>
EditorSource that creates
 FakeLeafValueEditor instances.| Modifier and Type | Field and Description | 
|---|---|
| static int | DISPOSEDReturn value for  getLastKnownPosition(com.google.gwt.editor.client.testing.FakeLeafValueEditor<T>)if the editor has been
 passed intodispose(com.google.gwt.editor.client.testing.FakeLeafValueEditor<T>). | 
| static int | UNKNOWNReturn value for  getLastKnownPosition(com.google.gwt.editor.client.testing.FakeLeafValueEditor<T>)if the editor was not
 created by this FakeEditorSource. | 
| Constructor and Description | 
|---|
| FakeEditorSource() | 
| Modifier and Type | Method and Description | 
|---|---|
| FakeLeafValueEditor<T> | create(int index)Create a new Editor. | 
| FakeLeafValueEditor<T> | createEditorForTraversal()Creates a temporary sub-Editor to use for traversal. | 
| void | dispose(FakeLeafValueEditor<T> subEditor)Called when an Editor no longer requires a sub-Editor. | 
| int | getLastKnownPosition(FakeLeafValueEditor<T> editor) | 
| void | setIndex(FakeLeafValueEditor<T> editor,
        int index)Re-order a sub-Editor. | 
createpublic static final int DISPOSED
getLastKnownPosition(com.google.gwt.editor.client.testing.FakeLeafValueEditor<T>) if the editor has been
 passed into dispose(com.google.gwt.editor.client.testing.FakeLeafValueEditor<T>).public static final int UNKNOWN
getLastKnownPosition(com.google.gwt.editor.client.testing.FakeLeafValueEditor<T>) if the editor was not
 created by this FakeEditorSource.public FakeLeafValueEditor<T> create(int index)
EditorSourcecreate in class EditorSource<FakeLeafValueEditor<T>>index - the position at which the new Editor should be displayedEditor of type Epublic FakeLeafValueEditor<T> createEditorForTraversal()
EditorSource
 For backwards compatibility with GWT 2.5.0 and earlier, the default implementation calls
 create(0) and disposes the editor right away.
createEditorForTraversal in class EditorSource<FakeLeafValueEditor<T>>Editor of type EListEditor.createEditorForTraversal(), 
EditorContext.traverseSyntheticCompositeEditor(com.google.gwt.editor.client.EditorVisitor)public void dispose(FakeLeafValueEditor<T> subEditor)
EditorSourcedispose in class EditorSource<FakeLeafValueEditor<T>>subEditor - an Editor of type Epublic int getLastKnownPosition(FakeLeafValueEditor<T> editor)
public void setIndex(FakeLeafValueEditor<T> editor, int index)
EditorSourcesetIndex in class EditorSource<FakeLeafValueEditor<T>>editor - an Editor of type Eindex - the index of the Editor