Module com.iamsoft.util.ui
Class ObservableLimitedList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
javafx.collections.ObservableListBase<E>
javafx.collections.ModifiableObservableListBase<T>
com.iamsoft.util.ui.javafx.collections.ObservableLimitedList<T>
- Type Parameters:
T
- Type of the item in this list.
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<T>
,javafx.beans.Observable
,javafx.collections.ObservableList<T>
public class ObservableLimitedList<T>
extends javafx.collections.ModifiableObservableListBase<T>
ObservableList with limited size.
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javafx.collections.ModifiableObservableListBase
add, addAll, addAll, remove, remove, removeAll, removeRange, retainAll, set, setAll, subList
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
Methods inherited from class java.util.AbstractList
clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, 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
clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, replaceAll, sort, spliterator, toArray, toArray
Methods inherited from interface javafx.collections.ObservableList
filtered, sorted, sorted
-
Constructor Details
-
ObservableLimitedList
public ObservableLimitedList(int pMaxSize)
-
-
Method Details
-
add
- Specified by:
add
in interfaceCollection<T>
- Specified by:
add
in interfaceList<T>
- Overrides:
add
in classAbstractList<T>
-
get
-
size
public int size() -
doAdd
- Specified by:
doAdd
in classjavafx.collections.ModifiableObservableListBase<T>
-
doSet
- Specified by:
doSet
in classjavafx.collections.ModifiableObservableListBase<T>
-
doRemove
- Specified by:
doRemove
in classjavafx.collections.ModifiableObservableListBase<T>
-