Class ListValidationEditorWrapper<T,E extends org.gwtproject.editor.client.Editor<? super T>>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- de.knightsoftnet.validators.client.editor.impl.ListValidationEditorWrapper<T,E>
-
- Type Parameters:
T- the type of data being editedE- the type of Editor
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>
public class ListValidationEditorWrapper<T,E extends org.gwtproject.editor.client.Editor<? super T>> extends AbstractList<T>
Synchronizes a list of objects and a list of Editors.
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ListValidationEditorWrapper(List<T> backing, org.gwtproject.editor.client.CompositeEditor.EditorChain<T,E> chain, org.gwtproject.editor.client.adapters.EditorSource<E> editorSource, BeanValidationEditorDriver<?,?> pparentDriver)constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, T element)Tget(int index)Tremove(int index)Tset(int index, T element)intsize()-
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
ListValidationEditorWrapper
public ListValidationEditorWrapper(List<T> backing, org.gwtproject.editor.client.CompositeEditor.EditorChain<T,E> chain, org.gwtproject.editor.client.adapters.EditorSource<E> editorSource, BeanValidationEditorDriver<?,?> pparentDriver)
constructor.- Parameters:
backing- list of data entries.chain- editor deligatoreditorSource- editor sourcepparentDriver- parent driver
-
-
Method Detail
-
add
public void add(int index, T element)
-
get
public T get(int index)
-
remove
public T remove(int index)
-
size
public int size()
- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
-