|
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<E>
E
- the type of Editor requiredpublic abstract class EditorSource<E extends Editor<?>>
An entity capable of creating and destroying instances of Editors. This type
is used by Editors which operate on ordered data, such as ListEditor
.
FakeEditorSource
Constructor Summary | |
---|---|
EditorSource()
|
Method Summary | |
---|---|
abstract E |
create(int index)
Create a new Editor. |
java.util.List<E> |
create(int count,
int index)
Create multiple Editors. |
E |
createEditorForTraversal()
Creates a temporary sub-Editor to use for traversal. |
void |
dispose(E subEditor)
Called when an Editor no longer requires a sub-Editor. |
void |
setIndex(E editor,
int index)
Re-order a sub-Editor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EditorSource()
Method Detail |
---|
public abstract E create(int index)
index
- the position at which the new Editor should be displayed
Editor
of type Epublic java.util.List<E> create(int count, int index)
count
- the number of Editors desiredindex
- the position at which the new Editors should be displayed
Editor
s of type Epublic E createEditorForTraversal()
For backwards compatibility with GWT 2.5.0 and earlier, the default implementation calls
create(0)
and disposes
the editor right away.
Editor
of type EListEditor.createEditorForTraversal()
,
EditorContext.traverseSyntheticCompositeEditor(com.google.gwt.editor.client.EditorVisitor)
public void dispose(E subEditor)
subEditor
- an Editor
of type Epublic void setIndex(E editor, int index)
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 |