public class

FakeEditorSource

extends EditorSource<E extends Editor<?>>
java.lang.Object
   ↳ com.google.gwt.editor.client.adapters.EditorSource<E extends com.google.gwt.editor.client.Editor<?>>
     ↳ com.google.gwt.editor.client.testing.FakeEditorSource<T>

Class Overview

A trivial implementation of EditorSource that creates FakeLeafValueEditor instances.

Summary

Constants
int DISPOSED Return value for getLastKnownPosition(FakeLeafValueEditor) if the editor has been passed into dispose(E).
int UNKNOWN Return value for getLastKnownPosition(FakeLeafValueEditor) if the editor was not created by this FakeEditorSource.
Public Constructors
FakeEditorSource()
Public Methods
FakeLeafValueEditor<T> create(int index)
Create a new Editor.
void dispose(FakeLeafValueEditor<T> subEditor)
Called when an Editor no longer requires a sub-Editor.
int getLastKnownPosition(FakeLeafValueEditor<T> editor)
void setIndex(FakeLeafValueEditor<T> editor, int index)
Re-order a sub-Editor.
[Expand]
Inherited Methods
From class com.google.gwt.editor.client.adapters.EditorSource
From class java.lang.Object

Constants

public static final int DISPOSED

Return value for getLastKnownPosition(FakeLeafValueEditor) if the editor has been passed into dispose(E).

Constant Value: -2 (0xfffffffe)

public static final int UNKNOWN

Return value for getLastKnownPosition(FakeLeafValueEditor) if the editor was not created by this FakeEditorSource.

Constant Value: -1 (0xffffffff)

Public Constructors

public FakeEditorSource ()

Public Methods

public FakeLeafValueEditor<T> create (int index)

Create a new Editor.

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

public void dispose (FakeLeafValueEditor<T> 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 int getLastKnownPosition (FakeLeafValueEditor<T> editor)

public void setIndex (FakeLeafValueEditor<T> 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