Class HasDataEditor.HasDataEditorSource<T>
java.lang.Object
com.google.gwt.editor.client.adapters.EditorSource<LeafValueEditor<T>>
com.google.gwt.editor.client.adapters.HasDataEditor.HasDataEditorSource<T>
- Enclosing class:
HasDataEditor<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gwt.editor.client.adapters.HasDataEditor.IndexedEditor
<T> create
(int index) Create a new Editor.Creates a temporary sub-Editor to use for traversal.void
dispose
(LeafValueEditor<T> subEditor) Called when an Editor no longer requires a sub-Editor.void
setIndex
(LeafValueEditor<T> editor, int index) Re-order a sub-Editor.Methods inherited from class com.google.gwt.editor.client.adapters.EditorSource
create
-
Constructor Details
-
HasDataEditorSource
-
-
Method Details
-
create
Description copied from class:EditorSource
Create a new Editor.- Specified by:
create
in classEditorSource<LeafValueEditor<T>>
- Parameters:
index
- the position at which the new Editor should be displayed- Returns:
- an
Editor
of type E
-
createEditorForTraversal
Description copied from class:EditorSource
Creates a temporary sub-Editor to use for traversal.For backwards compatibility with GWT 2.5.0 and earlier, the default implementation calls
create(0)
anddisposes
the editor right away.- Overrides:
createEditorForTraversal
in classEditorSource<LeafValueEditor<T>>
- Returns:
- an
Editor
of type E - See Also:
-
dispose
Description copied from class:EditorSource
Called when an Editor no longer requires a sub-Editor. The default implementation is a no-op.- Overrides:
dispose
in classEditorSource<LeafValueEditor<T>>
- Parameters:
subEditor
- anEditor
of type E
-
setIndex
Description copied from class:EditorSource
Re-order a sub-Editor. The default implementation is a no-op.- Overrides:
setIndex
in classEditorSource<LeafValueEditor<T>>
- Parameters:
editor
- anEditor
of type Eindex
- the index of the Editor
-