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
Constructors Constructor Description CompositeObservableList(javafx.collections.ObservableList<javafx.collections.ObservableList<T>> pComponentLists)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Tget(int pIdx)booleanisEmpty()Tremove(int pIdx)protected voidremoveRange(int pFromIdx, int pToIdx)Tset(int pIdx, T pElement)intsize()Sum of sizes of component list models.-
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
-
-
-
-
Constructor Detail
-
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 Detail
-
size
public int size()
Sum of sizes of component list models.- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
get
public T get(int pIdx)
-
remove
public T remove(int pIdx)
-
removeRange
protected void removeRange(int pFromIdx, int pToIdx)- Overrides:
removeRangein classAbstractList<T>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<T>- Specified by:
clearin interfaceList<T>- Overrides:
clearin classAbstractList<T>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<T>- Specified by:
isEmptyin interfaceList<T>- Overrides:
isEmptyin classAbstractCollection<T>
-
-