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, isInTransformationChainaddAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAll, setAlladd, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringaddAll, addListener, filtered, remove, removeAll, removeListener, retainAll, setAll, setAll, sorted, sortedadd, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamaddListener, removeListenerpublic 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)
TransformationListsourceChanged、クラス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 - 返される要素のインデックスIndexOutOfBoundsExceptionpublic int size()
size、インタフェースCollection<E>size、インタフェースList<E>size、クラスAbstractCollection<E>public int getSourceIndex(int index)
TransformationListgetSourceIndex、クラスTransformationList<E,E>index - このリストの索引TransformationList.getSource()Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.