public final class SortedList<E> extends TransformationList<E,E>
TransformationList
型 | プロパティと説明 |
---|---|
ObjectProperty<Comparator<? super E>> |
comparator
このSortedListの順序を示すコンパレータ。
|
modCount
コンストラクタと説明 |
---|
SortedList(ObservableList<? extends E> source)
ソース・リストの周囲にある順序付けられていない新しいSortedListラッパーを構築します。
|
SortedList(ObservableList<? extends E> source, Comparator<? super E> comparator)
ソース・リストの周囲にラップされた新しいSortedListを作成します。
|
修飾子と型 | メソッドと説明 |
---|---|
ObjectProperty<Comparator<? super E>> |
comparatorProperty()
このSortedListの順序を示すコンパレータ。
|
E |
get(int index)
このリスト内の指定された位置にある要素を返します。
|
Comparator<? super E> |
getComparator()
プロパティcomparatorの値を取得します。
|
int |
getSourceIndex(int index)
このリストの要素の索引を直接ソース・リストの索引にマップします。
|
void |
setComparator(Comparator<? super E> comparator)
プロパティcomparatorの値を設定します。
|
int |
size()
このリスト内にある要素の数を返します。
|
protected void |
sourceChanged(ListChangeListener.Change<? extends E> c)
ソースの変更がトリガーされると呼び出されます。
|
getSource, getSourceIndexFor, isInTransformationChain
addAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAll, setAll
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
addAll, addListener, filtered, remove, removeAll, removeListener, retainAll, setAll, setAll, sorted, sorted
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
addListener, removeListener
public final ObjectProperty<Comparator<? super E>> comparatorProperty
public SortedList(ObservableList<? extends E> source, Comparator<? super E> comparator)
source
- ラップするリストcomparator
- 使用するコンパレータまたはリストが順序付けられていない場合はnullpublic SortedList(ObservableList<? extends E> source)
source
- ソース・リストSortedList(javafx.collections.ObservableList, java.util.Comparator)
protected void sourceChanged(ListChangeListener.Change<? extends E> c)
TransformationList
sourceChanged
、クラス: TransformationList<E,E>
c
- 変更public final ObjectProperty<Comparator<? super E>> comparatorProperty()
public final Comparator<? super E> getComparator()
public final void setComparator(Comparator<? super E> comparator)
public E get(int index)
get
、インタフェース: List<E>
get
、クラス: AbstractList<E>
index
- 返される要素のインデックスIndexOutOfBoundsException
public int size()
size
、インタフェース: Collection<E>
size
、インタフェース: List<E>
size
、クラス: AbstractCollection<E>
public int getSourceIndex(int index)
TransformationList
getSourceIndex
、クラス: TransformationList<E,E>
index
- このリストの索引TransformationList.getSource()
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.