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.AbstractListmodCount
 
- 
 - 
Constructor SummaryConstructors Constructor Description CompositeObservableList(javafx.collections.ObservableList<javafx.collections.ObservableList<T>> pComponentLists)
 - 
Method SummaryAll 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.ObservableListBaseaddAll, 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.AbstractListadd, add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
 - 
Methods inherited from class java.util.AbstractCollectionaddAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArray
 - 
Methods inherited from interface java.util.Listadd, add, addAll, addAll, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray
 
- 
 
- 
- 
- 
Constructor Detail- 
CompositeObservableListpublic 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- 
sizepublic int size() Sum of sizes of component list models.- Specified by:
- sizein interface- Collection<T>
- Specified by:
- sizein interface- List<T>
- Specified by:
- sizein class- AbstractCollection<T>
 
 - 
getpublic T get(int pIdx) 
 - 
removepublic T remove(int pIdx) 
 - 
removeRangeprotected void removeRange(int pFromIdx, int pToIdx)- Overrides:
- removeRangein class- AbstractList<T>
 
 - 
clearpublic void clear() - Specified by:
- clearin interface- Collection<T>
- Specified by:
- clearin interface- List<T>
- Overrides:
- clearin class- AbstractList<T>
 
 - 
isEmptypublic boolean isEmpty() - Specified by:
- isEmptyin interface- Collection<T>
- Specified by:
- isEmptyin interface- List<T>
- Overrides:
- isEmptyin class- AbstractCollection<T>
 
 
- 
 
-