Module com.iamsoft.util.ui
Class ReverseObservableList<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- javafx.collections.ObservableListBase<T>
-
- com.iamsoft.util.ui.javafx.collections.ReverseObservableList<T>
-
- Type Parameters:
T
- Type of object in list.
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<T>
,javafx.beans.Observable
,javafx.collections.ObservableList<T>
public class ReverseObservableList<T> extends javafx.collections.ObservableListBase<T>
Reverses order of items in observable list. TODO: consider subclassing TransformationList.
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ReverseObservableList(javafx.collections.ObservableList<T> pDelegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(T pItem)
T
get(int pIdx)
T
remove(int pIdx)
T
set(int pIdx, T pElement)
int
size()
-
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, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, 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, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray
-
-
-
-
Constructor Detail
-
ReverseObservableList
public ReverseObservableList(javafx.collections.ObservableList<T> pDelegate)
-
-
Method Detail
-
add
public boolean add(T pItem)
- Specified by:
add
in interfaceCollection<T>
- Specified by:
add
in interfaceList<T>
- Overrides:
add
in classAbstractList<T>
-
remove
public T remove(int pIdx)
-
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>
-
-