Module org.jhotdraw8.fxcollection
Class MappedObservableList<A,B>
java.lang.Object
java.util.AbstractCollection<A>
java.util.AbstractList<A>
javafx.collections.ObservableListBase<A>
javafx.collections.transformation.TransformationList<A,B>
org.jhotdraw8.fxcollection.mapped.MappedObservableList<A,B>
- Type Parameters:
A- the element type of this listB- the element type of the source list
- All Implemented Interfaces:
Iterable<A>,Collection<A>,List<A>,SequencedCollection<A>,javafx.beans.Observable,javafx.collections.ObservableList<A>
public class MappedObservableList<A,B>
extends javafx.collections.transformation.TransformationList<A,B>
Maps an
ObservableList in an ObservableList of a different
element type.- Author:
- Werner Randelshofer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMaps aListChangeListener.Changein aListChangeListener.Changeof a different element type. -
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanget(int index) intgetSourceIndex(int index) intgetViewIndex(int index) remove(int index) voidremove(int from, int to) booleanintsize()protected voidsourceChanged(javafx.collections.ListChangeListener.Change<? extends B> c) Methods inherited from class javafx.collections.transformation.TransformationList
getSource, getSourceIndexFor, isInTransformationChainMethods inherited from class javafx.collections.ObservableListBase
addAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, removeAll, removeListener, removeListener, retainAll, setAll, setAllMethods inherited from class java.util.AbstractList
addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, subList, toArray, toArrayMethods inherited from interface javafx.beans.Observable
subscribeMethods inherited from interface javafx.collections.ObservableList
filtered, sorted, sorted
-
Constructor Details
-
MappedObservableList
-
-
Method Details
-
sourceChanged
-
getSourceIndex
public int getSourceIndex(int index) -
getViewIndex
public int getViewIndex(int index) -
get
-
size
public int size()- Specified by:
sizein interfaceCollection<A>- Specified by:
sizein interfaceList<A>- Specified by:
sizein classAbstractCollection<A>
-
remove
-
remove
- Specified by:
removein interfaceCollection<A>- Specified by:
removein interfaceList<A>- Overrides:
removein classAbstractCollection<A>
-
add
-
add
- Specified by:
addin interfaceCollection<A>- Specified by:
addin interfaceList<A>- Overrides:
addin classAbstractList<A>
-
set
-
remove
public void remove(int from, int to)
-