Package com.vaadin.flow.templatemodel
Class TemplateModelListProxy<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.vaadin.flow.templatemodel.TemplateModelListProxy<T>
-
- Type Parameters:
T
- the type of items in the list
- All Implemented Interfaces:
Serializable
,Iterable<T>
,Collection<T>
,List<T>
@Deprecated public class TemplateModelListProxy<T> extends AbstractList<T> implements Serializable
Deprecated.This functionality is internal and bound to template model which is not supported for lit template. Polymer template support is deprecated - we recommend you to useLitTemplate
instead. Read more details from the Vaadin blog.A list implementation which uses aModelList
in aStateNode
as the data source.For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description TemplateModelListProxy(StateNode stateNode, ComplexModelType<T> itemType)
Deprecated.Creates a new proxy for the given node and item type.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
add(int index, T object)
Deprecated.void
clear()
Deprecated.T
get(int index)
Deprecated.int
indexOf(Object object)
Deprecated.T
remove(int index)
Deprecated.boolean
remove(Object object)
Deprecated.T
set(int index, T object)
Deprecated.int
size()
Deprecated.-
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, 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, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
TemplateModelListProxy
public TemplateModelListProxy(StateNode stateNode, ComplexModelType<T> itemType)
Deprecated.Creates a new proxy for the given node and item type.- Parameters:
stateNode
- the state node containing the model listitemType
- the type of items in the list
-
-
Method Detail
-
get
public T get(int index)
Deprecated.
-
add
public void add(int index, T object)
Deprecated.
-
clear
public void clear()
Deprecated.- Specified by:
clear
in interfaceCollection<T>
- Specified by:
clear
in interfaceList<T>
- Overrides:
clear
in classAbstractList<T>
-
indexOf
public int indexOf(Object object)
Deprecated.
-
remove
public boolean remove(Object object)
Deprecated.- Specified by:
remove
in interfaceCollection<T>
- Specified by:
remove
in interfaceList<T>
- Overrides:
remove
in classAbstractCollection<T>
-
remove
public T remove(int index)
Deprecated.
-
size
public int size()
Deprecated.- Specified by:
size
in interfaceCollection<T>
- Specified by:
size
in interfaceList<T>
- Specified by:
size
in classAbstractCollection<T>
-
-