Module com.iamsoft.util.ui
Class CompositeObservableList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
javafx.collections.ObservableListBase<T>
com.iamsoft.util.ui.javafx.collections.CompositeObservableList<T>
- Type Parameters:
T
- List element type.
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<T>
,javafx.beans.Observable
,javafx.collections.ObservableList<T>
public class CompositeObservableList<T>
extends javafx.collections.ObservableListBase<T>
List comprising zero to many child lists models. Events are automatically
propagated from component lists. Items can be removed or replaced but not added.
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeObservableList
(javafx.collections.ObservableList<javafx.collections.ObservableList<T>> pComponentLists) -
Method Summary
Methods 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, setAll, setAll
Methods inherited from class java.util.AbstractList
add, add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, 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
add, add, addAll, addAll, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray
Methods inherited from interface javafx.collections.ObservableList
filtered, sorted, sorted
-
Constructor Details
-
CompositeObservableList
public CompositeObservableList(javafx.collections.ObservableList<javafx.collections.ObservableList<T>> pComponentLists) - Parameters:
pComponentLists
- Lists that will be laid end to end in order to create composite list.
-
-
Method Details
-
size
public int size()Sum of sizes of component list models.- Specified by:
size
in interfaceCollection<T>
- Specified by:
size
in interfaceList<T>
- Specified by:
size
in classAbstractCollection<T>
-
get
-
set
-
remove
-
removeRange
protected void removeRange(int pFromIdx, int pToIdx) - Overrides:
removeRange
in classAbstractList<T>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T>
- Specified by:
clear
in interfaceList<T>
- Overrides:
clear
in classAbstractList<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T>
- Specified by:
isEmpty
in interfaceList<T>
- Overrides:
isEmpty
in classAbstractCollection<T>
-