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>
static class HasDataEditor.HasDataEditorSource<T> extends EditorSource<LeafValueEditor<T>>
-
-
Constructor Summary
Constructors Constructor Description HasDataEditorSource(HasData<T> data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.editor.client.adapters.HasDataEditor.IndexedEditor<T>create(int index)Create a new Editor.LeafValueEditor<T>createEditorForTraversal()Creates a temporary sub-Editor to use for traversal.voiddispose(LeafValueEditor<T> subEditor)Called when an Editor no longer requires a sub-Editor.voidsetIndex(LeafValueEditor<T> editor, int index)Re-order a sub-Editor.-
Methods inherited from class com.google.gwt.editor.client.adapters.EditorSource
create
-
-
-
-
Method Detail
-
create
public com.google.gwt.editor.client.adapters.HasDataEditor.IndexedEditor<T> create(int index)
Description copied from class:EditorSourceCreate a new Editor.- Specified by:
createin classEditorSource<LeafValueEditor<T>>- Parameters:
index- the position at which the new Editor should be displayed- Returns:
- an
Editorof type E
-
createEditorForTraversal
public LeafValueEditor<T> 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<LeafValueEditor<T>>- Returns:
- an
Editorof type E - See Also:
ListEditor.createEditorForTraversal(),EditorContext.traverseSyntheticCompositeEditor(com.google.gwt.editor.client.EditorVisitor)
-
dispose
public void dispose(LeafValueEditor<T> subEditor)
Description copied from class:EditorSourceCalled when an Editor no longer requires a sub-Editor. The default implementation is a no-op.- Overrides:
disposein classEditorSource<LeafValueEditor<T>>- Parameters:
subEditor- anEditorof type E
-
setIndex
public void setIndex(LeafValueEditor<T> editor, int index)
Description copied from class:EditorSourceRe-order a sub-Editor. The default implementation is a no-op.- Overrides:
setIndexin classEditorSource<LeafValueEditor<T>>- Parameters:
editor- anEditorof type Eindex- the index of the Editor
-
-