Module com.iamsoft.util.ui
Class ProxyObservableList<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- javafx.collections.ObservableListBase<T>
-
- com.iamsoft.util.ui.javafx.collections.ProxyObservableList<T>
-
- Type Parameters:
T- Type of object stored in list.
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>,javafx.beans.Observable,javafx.collections.ObservableList<T>
- Direct Known Subclasses:
ConflatingList,ExtractingObservableList,ProxyObservableList.Exposed,ReducedObservableList,TransposedObservableList
public class ProxyObservableList<T> extends javafx.collections.ObservableListBase<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProxyObservableList.Exposed<T>Exposes getDelegate() and delegateProperty().static classProxyObservableList.Propertied<T>Use covariant returns to assume ObjectProperty delegate instead of ObservableValue.
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ProxyObservableList()ProxyObservableList(javafx.beans.value.ObservableValue<javafx.collections.ObservableList<T>> pDelegateProperty)ProxyObservableList(javafx.collections.ObservableList<T> pDelegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int pIdx, T pElement)booleanadd(T pItem)booleanaddAll(int pIdx, Collection<? extends T> pCollection)booleanaddAll(Collection<? extends T> pCollection)booleanaddAll(T... pElements)voidclear()booleancontains(Object pObj)booleancontainsAll(Collection<?> pCollection)protected javafx.beans.value.ObservableValue<javafx.collections.ObservableList<T>>delegateProperty()booleanequals(Object pObj)Tget(int pIdx)protected javafx.collections.ObservableList<T>getDelegate()inthashCode()intindexOf(Object pObj)booleanisEmpty()intlastIndexOf(Object pObj)Tremove(int pIdx)voidremove(int pFrom, int pTo)booleanremove(Object pObj)booleanremoveAll(Collection<?> pCollection)booleanremoveAll(T... pElements)voidreplaceAll(UnaryOperator<T> pOperator)booleanretainAll(Collection<?> pCollection)booleanretainAll(T... pElements)Tset(int pIdx, T pElement)booleansetAll(Collection<? extends T> pCol)booleansetAll(T... pElements)intsize()StringtoString()-
Methods inherited from class javafx.collections.ObservableListBase
addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, removeListener, removeListener
-
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
toArray, toArray
-
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
iterator, listIterator, listIterator, sort, spliterator, subList, toArray, toArray
-
-
-
-
Constructor Detail
-
ProxyObservableList
public ProxyObservableList()
-
ProxyObservableList
public ProxyObservableList(javafx.collections.ObservableList<T> pDelegate)
-
ProxyObservableList
public ProxyObservableList(javafx.beans.value.ObservableValue<javafx.collections.ObservableList<T>> pDelegateProperty)
-
-
Method Detail
-
getDelegate
protected javafx.collections.ObservableList<T> getDelegate()
-
delegateProperty
protected javafx.beans.value.ObservableValue<javafx.collections.ObservableList<T>> delegateProperty()
-
get
public T get(int pIdx)
-
size
public int size()
- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<T>- Specified by:
isEmptyin interfaceList<T>- Overrides:
isEmptyin classAbstractCollection<T>
-
contains
public boolean contains(Object pObj)
- Specified by:
containsin interfaceCollection<T>- Specified by:
containsin interfaceList<T>- Overrides:
containsin classAbstractCollection<T>
-
add
public boolean add(T pItem)
- Specified by:
addin interfaceCollection<T>- Specified by:
addin interfaceList<T>- Overrides:
addin classAbstractList<T>
-
add
public void add(int pIdx, T pElement)
-
remove
public T remove(int pIdx)
-
remove
public boolean remove(Object pObj)
- Specified by:
removein interfaceCollection<T>- Specified by:
removein interfaceList<T>- Overrides:
removein classAbstractCollection<T>
-
remove
public void remove(int pFrom, int pTo)
-
indexOf
public int indexOf(Object pObj)
-
equals
public boolean equals(Object pObj)
- Specified by:
equalsin interfaceCollection<T>- Specified by:
equalsin interfaceList<T>- Overrides:
equalsin classAbstractList<T>
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCollection<T>- Specified by:
hashCodein interfaceList<T>- Overrides:
hashCodein classAbstractList<T>
-
containsAll
public boolean containsAll(Collection<?> pCollection)
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>- Overrides:
containsAllin classAbstractCollection<T>
-
toString
public String toString()
- Overrides:
toStringin classAbstractCollection<T>
-
replaceAll
public void replaceAll(UnaryOperator<T> pOperator)
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<T>- Specified by:
clearin interfaceList<T>- Overrides:
clearin classAbstractList<T>
-
lastIndexOf
public int lastIndexOf(Object pObj)
- Specified by:
lastIndexOfin interfaceList<T>- Overrides:
lastIndexOfin classAbstractList<T>
-
addAll
public boolean addAll(int pIdx, Collection<? extends T> pCollection)
-
addAll
public boolean addAll(Collection<? extends T> pCollection)
- Specified by:
addAllin interfaceCollection<T>- Specified by:
addAllin interfaceList<T>- Overrides:
addAllin classAbstractCollection<T>
-
addAll
public boolean addAll(T... pElements)
-
setAll
public boolean setAll(T... pElements)
-
setAll
public boolean setAll(Collection<? extends T> pCol)
-
removeAll
public boolean removeAll(Collection<?> pCollection)
- Specified by:
removeAllin interfaceCollection<T>- Specified by:
removeAllin interfaceList<T>- Overrides:
removeAllin classAbstractCollection<T>
-
removeAll
public boolean removeAll(T... pElements)
-
retainAll
public boolean retainAll(Collection<?> pCollection)
- Specified by:
retainAllin interfaceCollection<T>- Specified by:
retainAllin interfaceList<T>- Overrides:
retainAllin classAbstractCollection<T>
-
-