Class StandardObjectSwitchingSourceList<T,M extends IList<T>>
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.aef2.models.EditableModel
-
- com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceModel<M>
-
- com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceList<T,M>
-
- All Implemented Interfaces:
IEditableModel
,IModel
,IList<T>
,IValidable
,IModelApiAwareModel
,Iterable<T>
,Collection<T>
,List<T>
- Direct Known Subclasses:
StandardObjectChoiceParameterLinksModel
,StandardObjectChoiceParametersModel
public class StandardObjectSwitchingSourceList<T,M extends IList<T>> extends StandardObjectSwitchingSourceModel<M> implements IList<T>
The list model implementation forStandardObjectSwitchingSourceModel
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceModel
StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<T extends IModel>
-
-
Constructor Summary
Constructors Constructor Description StandardObjectSwitchingSourceList(StandardObjectProxy proxy, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<M> emfModelCreator, StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<M> bmModelCreator)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, T element)
boolean
add(T e)
boolean
addAll(int index, Collection<? extends T> c)
boolean
addAll(Collection<? extends T> c)
void
addListListener(IListListener<T> listener)
Adds the list listener.void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
IList<T>
createWorkingCopy()
void
fill(Collection<T> collection)
Clears the current stored list and adds all elements of the given collection to the stored list.T
get(int index)
int
indexOf(Object o)
boolean
isEmpty()
boolean
isEqual(List<T> other)
Checks the list for equality with the current stored list.Iterator<T>
iterator()
int
lastIndexOf(Object o)
ListIterator<T>
listIterator()
ListIterator<T>
listIterator(int index)
T
remove(int index)
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
void
removeListListener(IListListener<T> listener)
Removes the list listener.boolean
retainAll(Collection<?> c)
T
set(int index, T element)
int
size()
List<T>
subList(int fromIndex, int toIndex)
Object[]
toArray()
<E> E[]
toArray(E[] a)
-
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceModel
dispose, getChange, getModelApi, getProxy, getWrappedModel, isOnline, setModelApi
-
Methods inherited from class com._1c.g5.aef2.models.EditableModel
isEditable, setEditable
-
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline, toString
-
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, validate, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Constructor Detail
-
StandardObjectSwitchingSourceList
public StandardObjectSwitchingSourceList(StandardObjectProxy proxy, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<M> emfModelCreator, StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<M> bmModelCreator)
The constructor.- Parameters:
proxy
- theStandardObjectProxy
object, cannot benull
.object
- theStandardAttribute
instance, cannot benull
.feature
- the feature, cannot benull
.emfModelCreator
- the EMF modelStandardObjectSwitchingSourceModel.IStandardAttributeModelCreator
instance, cannot benull
.bmModelCreator
- the BM modelStandardObjectSwitchingSourceModel.IStandardAttributeModelCreator
instance, cannot benull
.
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
toArray
public Object[] toArray()
-
toArray
public <E> E[] toArray(E[] a)
-
add
public boolean add(T e)
-
remove
public boolean remove(Object o)
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
-
addAll
public boolean addAll(Collection<? extends T> c)
-
addAll
public boolean addAll(int index, Collection<? extends T> c)
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
clear
public void clear()
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList<T>
-
listIterator
public ListIterator<T> listIterator()
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
public ListIterator<T> listIterator(int index)
- Specified by:
listIterator
in interfaceList<T>
-
fill
public void fill(Collection<T> collection)
Description copied from interface:IList
Clears the current stored list and adds all elements of the given collection to the stored list.
-
isEqual
public boolean isEqual(List<T> other)
Description copied from interface:IList
Checks the list for equality with the current stored list.
-
addListListener
public void addListListener(IListListener<T> listener)
Description copied from interface:IList
Adds the list listener.- Specified by:
addListListener
in interfaceIList<T>
- Parameters:
listener
- the listener to add.
-
removeListListener
public void removeListListener(IListListener<T> listener)
Description copied from interface:IList
Removes the list listener.- Specified by:
removeListListener
in interfaceIList<T>
- Parameters:
listener
- the listener to remove.
-
createWorkingCopy
public IList<T> createWorkingCopy()
- Specified by:
createWorkingCopy
in interfaceIList<T>
- Specified by:
createWorkingCopy
in interfaceIModel
- Overrides:
createWorkingCopy
in classModel
- Returns:
- the model working copy or
null
if working copies is not supported by the model.
-
-