public abstract class

EditorSource

extends Object
java.lang.Object
   ↳ com.google.gwt.editor.client.adapters.EditorSource<E extends com.google.gwt.editor.client.Editor<?>>
Known Direct Subclasses

Class Overview

An entity capable of creating and destroying instances of Editors. This type is used by Editors which operate on ordered data, sich as ListEditor.

See Also

Summary

Public Constructors
EditorSource()
Public Methods
List<E> create(int count, int index)
Create multiple Editors.
abstract E create(int index)
Create a new Editor.
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EditorSource ()

Public Methods

public List<E> create (int count, int index)

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 desired
index the position at which the new Editors should be displayed
Returns

public abstract E create (int index)

Create a new Editor.

Parameters
index the position at which the new Editor should be displayed
Returns

public void dispose (E subEditor)

Called when an Editor no longer requires a sub-Editor. The default implementation is a no-op.

Parameters
subEditor an Editor of type E

public void setIndex (E editor, int index)

Re-order a sub-Editor. The default implementation is a no-op.

Parameters
editor an Editor of type E
index the index of the Editor