Module com.iamsoft.util.ui
Class ObservableSubList<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
javafx.collections.ObservableListBase<T>
com.iamsoft.util.ui.javafx.collections.ObservableSubList<T>
- Type Parameters:
T
- Type of object in list.
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<T>
,SequencedCollection<T>
,javafx.beans.Observable
,javafx.collections.ObservableList<T>
public class ObservableSubList<T>
extends javafx.collections.ObservableListBase<T>
Decorates another list while skipping first x items and limiting size to y.
TODO: consider subclassing TransformationList.
-
Property Summary
Properties -
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionObservableSubList
(javafx.collections.ObservableList<? extends T> pDelegate) ObservableSubList
(javafx.collections.ObservableList<? extends T> pDelegate, int pSkip) ObservableSubList
(javafx.collections.ObservableList<? extends T> pDelegate, int pSkip, Integer pLimit) -
Method Summary
Modifier and TypeMethodDescriptionget
(int pIdx) getLimit()
Gets the value of thelimit
property.int
getSkip()
Gets the value of theskip
property.javafx.beans.property.ObjectProperty
<Integer> void
Sets the value of thelimit
property.void
setSkip
(int pSkip) Sets the value of theskip
property.int
size()
javafx.beans.property.IntegerProperty
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, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, 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, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, sort, spliterator, subList, toArray, toArray
Methods inherited from interface javafx.beans.Observable
subscribe
Methods inherited from interface javafx.collections.ObservableList
filtered, sorted, sorted
-
Property Details
-
skip
public javafx.beans.property.IntegerProperty skipProperty- See Also:
-
limit
- See Also:
-
-
Constructor Details
-
ObservableSubList
-
ObservableSubList
-
ObservableSubList
-
-
Method Details
-
skipProperty
public javafx.beans.property.IntegerProperty skipProperty()- Returns:
- the
skip
property - See Also:
-
getSkip
public int getSkip()Gets the value of theskip
property.- Property description:
- Returns:
- the value of the
skip
property - See Also:
-
setSkip
public void setSkip(int pSkip) Sets the value of theskip
property.- Property description:
- Parameters:
pSkip
- the value for theskip
property- See Also:
-
limitProperty
- Returns:
- the
limit
property - See Also:
-
getLimit
Gets the value of thelimit
property.- Property description:
- Returns:
- the value of the
limit
property - See Also:
-
setLimit
Sets the value of thelimit
property.- Property description:
- Parameters:
pLimit
- the value for thelimit
property- See Also:
-
get
-
size
public int size()- Specified by:
size
in interfaceCollection<T>
- Specified by:
size
in interfaceList<T>
- Specified by:
size
in classAbstractCollection<T>
-