Module com.iamsoft.util.ui
Class DefaultObservableList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
javafx.collections.ObservableListBase<E>
javafx.collections.ModifiableObservableListBase<T>
com.iamsoft.util.ui.javafx.collections.DefaultObservableList<T>
- Type Parameters:
T- Type of object stored in list.
- All Implemented Interfaces:
PermutableObservableList<T>,Iterable<T>,Collection<T>,List<T>,javafx.beans.Observable,javafx.collections.ObservableList<T>
- Direct Known Subclasses:
DefaultObservableList.Exposed,ObservableArrayList
public class DefaultObservableList<T>
extends javafx.collections.ModifiableObservableListBase<T>
implements PermutableObservableList<T>
Observable list that simply delegates to another list. Main value of this list
is to facilitate multi-stage atomic updates by exposing begin/end methods.
- See Also:
-
ObservableListWrapper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classExposes DefaultObservableList.Exposed.getDelegate(), ObservableListBase.beginChange(), ObservableListBase.endChange(), ObservableListBase.nextAdd(int, int), ObservableListBase.nextRemove(int, List) and ObservableListBase.nextPermutation(int, int, int[]). -
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionDefaultObservableList(List<T> pDelegate) DefaultObservableList(List<T> pDelegate, javafx.util.Callback<T, javafx.beans.Observable[]> pExtractor) DefaultObservableList(javafx.util.Callback<T, javafx.beans.Observable[]> pCallback) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddElementObserver(int pIdx, T pElement) protected voidaddElementObservers(int pIdx, Collection<? extends T> pCollection) voidclear()booleanprotected voidprotected TdoRemove(int pIdx) protected Tget(int pIdx) intintlastIndexOf(Object pObj) voidpermutate(int pFrom, int[] pPermutation) protected voidremoveElementObserver(int pIdx) protected voidremoveElementObservers(int pFrom, int pTo) protected voidresetElementObserver(int pIdx) intsize()Methods inherited from class javafx.collections.ModifiableObservableListBase
add, addAll, addAll, remove, remove, removeAll, removeRange, retainAll, set, setAll, subListMethods inherited from class javafx.collections.ObservableListBase
addAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAllMethods inherited from class java.util.AbstractList
add, equals, hashCode, iterator, listIterator, listIteratorMethods inherited from class java.util.AbstractCollection
containsAll, isEmpty, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, add, addAll, addAll, containsAll, equals, hashCode, isEmpty, iterator, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArrayMethods inherited from interface javafx.beans.Observable
addListener, removeListenerMethods inherited from interface javafx.collections.ObservableList
addAll, addListener, filtered, remove, removeAll, removeListener, retainAll, setAll, setAll, sorted, sorted
-
Constructor Details
-
DefaultObservableList
public DefaultObservableList() -
DefaultObservableList
-
DefaultObservableList
-
DefaultObservableList
-
-
Method Details
-
getDelegate
-
doAdd
- Specified by:
doAddin classjavafx.collections.ModifiableObservableListBase<T>
-
doSet
- Specified by:
doSetin classjavafx.collections.ModifiableObservableListBase<T>
-
doRemove
- Specified by:
doRemovein classjavafx.collections.ModifiableObservableListBase<T>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T>- Specified by:
clearin interfaceList<T>- Overrides:
clearin classAbstractList<T>
-
get
-
size
public int size() -
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>- Overrides:
lastIndexOfin classAbstractList<T>
-
contains
- Specified by:
containsin interfaceCollection<T>- Specified by:
containsin interfaceList<T>- Overrides:
containsin classAbstractCollection<T>
-
permutate
public void permutate(int pFrom, int[] pPermutation) - Specified by:
permutatein interfacePermutableObservableList<T>
-
addElementObserver
-
addElementObservers
-
removeElementObserver
protected void removeElementObserver(int pIdx) -
removeElementObservers
protected void removeElementObservers(int pFrom, int pTo) -
resetElementObserver
protected void resetElementObserver(int pIdx)
-