java.lang.Object | |
↳ | com.google.gwt.editor.client.adapters.ListEditor<T, E extends com.google.gwt.editor.client.Editor<T>> |
Known Direct Subclasses |
Manages a list of objects and their associated Editors.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a ListEditor backed by an EditorSource.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a temporary sub-Editor to use for traversal.
| |||||||||||
Indicates that the Editor cycle is finished.
| |||||||||||
Returns an unmodifiable, live view of the Editors managed by the
ListEditor.
| |||||||||||
Returns a live view of the ListEditor's backing data.
| |||||||||||
Used to implement
getPath() for the component
Editors. | |||||||||||
Create a ListEditor backed by an EditorSource.
| |||||||||||
Notifies the Editor that one or more value properties have changed.
| |||||||||||
Sets the ListEditor's backing data.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gwt.editor.client.CompositeEditor
| |||||||||||
From interface
com.google.gwt.editor.client.HasEditorDelegate
| |||||||||||
From interface
com.google.gwt.editor.client.ValueAwareEditor
|
Create a ListEditor backed by an EditorSource.
source | the EditorSource which will create sub-Editors |
---|
Creates a temporary sub-Editor to use for traversal.
Editor
of type E
Indicates that the Editor cycle is finished. This method will be called in a depth-first order by the EditorDriver, so Editors do not generally need to flush their sub-editors.
Returns an unmodifiable, live view of the Editors managed by the ListEditor.
Editors
of type E
Returns a live view of the ListEditor's backing data. The structure of the
List may be mutated arbitrarily, subject to the limitations of the backing
List, but the elements themselves should not be mutated except through
getEditors()
to avoid data inconsistency.
ListEditor<Foo, MyFooEditor> listEditor = ListEditor.of(...); listEditor.setValue(listOfFoo); // Usually called by EditorDriver listEditor.getList().set(1, new Foo()); listEditor.getEditors().get(1).getFooFieldEditor().setValue(....);
Used to implement getPath()
for the component
Editors.
subEditor | an instance of the Editor type previously passed into EditorChain#attach |
---|
Create a ListEditor backed by an EditorSource.
source | the EditorSource which will create sub-Editors |
---|
Notifies the Editor that one or more value properties have changed. Not all backing services support property-based notifications.
paths | a list of String paths |
---|
Sets the ListEditor's backing data.
value | a List of data objects of type T |
---|