Class FakeEditorSource<T>
java.lang.Object
com.google.gwt.editor.client.adapters.EditorSource<FakeLeafValueEditor<T>>
com.google.gwt.editor.client.testing.FakeEditorSource<T>
- Type Parameters:
T- the type being edited
A trivial implementation of
EditorSource that creates
FakeLeafValueEditor instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intReturn value forgetLastKnownPosition(com.google.gwt.editor.client.testing.FakeLeafValueEditor<T>)if the editor has been passed intodispose(com.google.gwt.editor.client.testing.FakeLeafValueEditor<T>).static final intReturn value forgetLastKnownPosition(com.google.gwt.editor.client.testing.FakeLeafValueEditor<T>)if the editor was not created by this FakeEditorSource. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(int index) Create a new Editor.Creates a temporary sub-Editor to use for traversal.voiddispose(FakeLeafValueEditor<T> subEditor) Called when an Editor no longer requires a sub-Editor.intgetLastKnownPosition(FakeLeafValueEditor<T> editor) voidsetIndex(FakeLeafValueEditor<T> editor, int index) Re-order a sub-Editor.Methods inherited from class com.google.gwt.editor.client.adapters.EditorSource
create
-
Field Details
-
DISPOSED
public static final int DISPOSEDReturn value forgetLastKnownPosition(com.google.gwt.editor.client.testing.FakeLeafValueEditor<T>)if the editor has been passed intodispose(com.google.gwt.editor.client.testing.FakeLeafValueEditor<T>).- See Also:
-
UNKNOWN
public static final int UNKNOWNReturn value forgetLastKnownPosition(com.google.gwt.editor.client.testing.FakeLeafValueEditor<T>)if the editor was not created by this FakeEditorSource.- See Also:
-
-
Constructor Details
-
FakeEditorSource
public FakeEditorSource()
-
-
Method Details
-
create
Description copied from class:EditorSourceCreate a new Editor.- Specified by:
createin classEditorSource<FakeLeafValueEditor<T>>- Parameters:
index- the position at which the new Editor should be displayed- Returns:
- an
Editorof type E
-
createEditorForTraversal
Description copied from class:EditorSourceCreates a temporary sub-Editor to use for traversal.For backwards compatibility with GWT 2.5.0 and earlier, the default implementation calls
create(0)anddisposesthe editor right away.- Overrides:
createEditorForTraversalin classEditorSource<FakeLeafValueEditor<T>>- Returns:
- an
Editorof type E - See Also:
-
dispose
Description copied from class:EditorSourceCalled when an Editor no longer requires a sub-Editor. The default implementation is a no-op.- Overrides:
disposein classEditorSource<FakeLeafValueEditor<T>>- Parameters:
subEditor- anEditorof type E
-
getLastKnownPosition
-
setIndex
Description copied from class:EditorSourceRe-order a sub-Editor. The default implementation is a no-op.- Overrides:
setIndexin classEditorSource<FakeLeafValueEditor<T>>- Parameters:
editor- anEditorof type Eindex- the index of the Editor
-