Class EditorSource<E extends Editor<?>>
java.lang.Object
com.google.gwt.editor.client.adapters.EditorSource<E>
- Type Parameters:
E- the type of Editor required
- Direct Known Subclasses:
FakeEditorSource,HasDataEditor.HasDataEditorSource
An entity capable of creating and destroying instances of Editors. This type
is used by Editors which operate on ordered data, such as
ListEditor.- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EditorSource
public EditorSource()
-
-
Method Details
-
create
Create a new Editor.- Parameters:
index- the position at which the new Editor should be displayed- Returns:
- an
Editorof type E
-
create
Create multiple Editors. This method may be optionally overridden to provide a more efficient means of creating Editors in bulk.- Parameters:
count- the number of Editors desiredindex- the position at which the new Editors should be displayed- Returns:
- a List of
Editors of type E
-
createEditorForTraversal
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)anddisposesthe editor right away.- Returns:
- an
Editorof type E - See Also:
-
dispose
Called when an Editor no longer requires a sub-Editor. The default implementation is a no-op.- Parameters:
subEditor- anEditorof type E
-
setIndex
Re-order a sub-Editor. The default implementation is a no-op.- Parameters:
editor- anEditorof type Eindex- the index of the Editor
-