T
- the type of data being editedE
- the type of Editorclass ListEditorWrapper<T,E extends Editor<? super T>>
extends java.util.AbstractList<T>
Constructor and Description |
---|
ListEditorWrapper(java.util.List<T> backing,
CompositeEditor.EditorChain<T,E> chain,
EditorSource<E> editorSource) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
(package private) void |
attach()
Must be called after construction.
|
(package private) void |
detach() |
(package private) void |
flush() |
T |
get(int index) |
(package private) java.util.List<? extends E> |
getEditors()
For testing only.
|
(package private) boolean |
isSameValue(java.util.List<T> value)
Checks whether that ListEditorWrapper can be reused for the passed list.
|
(package private) void |
refresh()
Refresh the editors in case the backing list has been modified from
outside the ListEditorWrapper list.
|
T |
remove(int index) |
T |
set(int index,
T element) |
int |
size() |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public ListEditorWrapper(java.util.List<T> backing, CompositeEditor.EditorChain<T,E> chain, EditorSource<E> editorSource)
public void add(int index, T element)
public T get(int index)
public T remove(int index)
public int size()
void attach()
ListEditor.getList()
void detach()
void flush()
java.util.List<? extends E> getEditors()
boolean isSameValue(java.util.List<T> value)
The ListEditorWrapper can be reused if and only if the backing list is the same instance as the passed list.
void refresh()
This is basically the opposite from flush()
. It's used to
reuse sub-editors instead of recreating a ListEditorWrapper from
scratch.