|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.editor.client.adapters.EditorSource<FakeLeafValueEditor<T>> com.google.gwt.editor.client.testing.FakeEditorSource<T>
T
- the type being editedpublic class FakeEditorSource<T>
A trivial implementation of EditorSource
that creates
FakeLeafValueEditor
instances.
Field Summary | |
---|---|
static int |
DISPOSED
Return value for getLastKnownPosition(com.google.gwt.editor.client.testing.FakeLeafValueEditor if the editor has been
passed into dispose(com.google.gwt.editor.client.testing.FakeLeafValueEditor . |
static int |
UNKNOWN
Return value for getLastKnownPosition(com.google.gwt.editor.client.testing.FakeLeafValueEditor if the editor was not
created by this FakeEditorSource. |
Constructor Summary | |
---|---|
FakeEditorSource()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.google.gwt.editor.client.adapters.EditorSource |
---|
create |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DISPOSED
getLastKnownPosition(com.google.gwt.editor.client.testing.FakeLeafValueEditor)
if the editor has been
passed into dispose(com.google.gwt.editor.client.testing.FakeLeafValueEditor)
.
public static final int UNKNOWN
getLastKnownPosition(com.google.gwt.editor.client.testing.FakeLeafValueEditor)
if the editor was not
created by this FakeEditorSource.
Constructor Detail |
---|
public FakeEditorSource()
Method Detail |
---|
public FakeLeafValueEditor<T> create(int index)
EditorSource
create
in class EditorSource<FakeLeafValueEditor<T>>
index
- the position at which the new Editor should be displayed
Editor
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)
EditorSource
dispose
in class EditorSource<FakeLeafValueEditor<T>>
subEditor
- an Editor
of type Epublic int getLastKnownPosition(FakeLeafValueEditor<T> editor)
public void setIndex(FakeLeafValueEditor<T> editor, int index)
EditorSource
setIndex
in class EditorSource<FakeLeafValueEditor<T>>
editor
- an Editor
of type Eindex
- the index of the Editor
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |