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 class
ProxyObservableList.Exposed<T>
Exposes getDelegate() and delegateProperty().static class
ProxyObservableList.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 void
add(int pIdx, T pElement)
boolean
add(T pItem)
boolean
addAll(int pIdx, Collection<? extends T> pCollection)
boolean
addAll(Collection<? extends T> pCollection)
boolean
addAll(T... pElements)
void
clear()
boolean
contains(Object pObj)
boolean
containsAll(Collection<?> pCollection)
protected javafx.beans.value.ObservableValue<javafx.collections.ObservableList<T>>
delegateProperty()
boolean
equals(Object pObj)
T
get(int pIdx)
protected javafx.collections.ObservableList<T>
getDelegate()
int
hashCode()
int
indexOf(Object pObj)
boolean
isEmpty()
int
lastIndexOf(Object pObj)
T
remove(int pIdx)
void
remove(int pFrom, int pTo)
boolean
remove(Object pObj)
boolean
removeAll(Collection<?> pCollection)
boolean
removeAll(T... pElements)
void
replaceAll(UnaryOperator<T> pOperator)
boolean
retainAll(Collection<?> pCollection)
boolean
retainAll(T... pElements)
T
set(int pIdx, T pElement)
boolean
setAll(Collection<? extends T> pCol)
boolean
setAll(T... pElements)
int
size()
String
toString()
-
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:
size
in interfaceCollection<T>
- Specified by:
size
in interfaceList<T>
- Specified by:
size
in classAbstractCollection<T>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<T>
- Specified by:
isEmpty
in interfaceList<T>
- Overrides:
isEmpty
in classAbstractCollection<T>
-
contains
public boolean contains(Object pObj)
- Specified by:
contains
in interfaceCollection<T>
- Specified by:
contains
in interfaceList<T>
- Overrides:
contains
in classAbstractCollection<T>
-
add
public boolean add(T pItem)
- Specified by:
add
in interfaceCollection<T>
- Specified by:
add
in interfaceList<T>
- Overrides:
add
in classAbstractList<T>
-
add
public void add(int pIdx, T pElement)
-
remove
public T remove(int pIdx)
-
remove
public boolean remove(Object pObj)
- Specified by:
remove
in interfaceCollection<T>
- Specified by:
remove
in interfaceList<T>
- Overrides:
remove
in classAbstractCollection<T>
-
remove
public void remove(int pFrom, int pTo)
-
indexOf
public int indexOf(Object pObj)
-
equals
public boolean equals(Object pObj)
- Specified by:
equals
in interfaceCollection<T>
- Specified by:
equals
in interfaceList<T>
- Overrides:
equals
in classAbstractList<T>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceCollection<T>
- Specified by:
hashCode
in interfaceList<T>
- Overrides:
hashCode
in classAbstractList<T>
-
containsAll
public boolean containsAll(Collection<?> pCollection)
- Specified by:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
- Overrides:
containsAll
in classAbstractCollection<T>
-
toString
public String toString()
- Overrides:
toString
in classAbstractCollection<T>
-
replaceAll
public void replaceAll(UnaryOperator<T> pOperator)
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<T>
- Specified by:
clear
in interfaceList<T>
- Overrides:
clear
in classAbstractList<T>
-
lastIndexOf
public int lastIndexOf(Object pObj)
- Specified by:
lastIndexOf
in interfaceList<T>
- Overrides:
lastIndexOf
in classAbstractList<T>
-
addAll
public boolean addAll(int pIdx, Collection<? extends T> pCollection)
-
addAll
public boolean addAll(Collection<? extends T> pCollection)
- Specified by:
addAll
in interfaceCollection<T>
- Specified by:
addAll
in interfaceList<T>
- Overrides:
addAll
in 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:
removeAll
in interfaceCollection<T>
- Specified by:
removeAll
in interfaceList<T>
- Overrides:
removeAll
in classAbstractCollection<T>
-
removeAll
public boolean removeAll(T... pElements)
-
retainAll
public boolean retainAll(Collection<?> pCollection)
- Specified by:
retainAll
in interfaceCollection<T>
- Specified by:
retainAll
in interfaceList<T>
- Overrides:
retainAll
in classAbstractCollection<T>
-
-