public final class FilteredList<E> extends TransformationList<E,E>
TransformationList| 型 | プロパティと説明 |
|---|---|
ObjectProperty<Predicate<? super E>> |
predicate
このFilteredListにある要素と一致する述語。
|
modCount| コンストラクタと説明 |
|---|
FilteredList(ObservableList<E> source)
ソース・リストの周囲にある新しいFilteredListラッパーを構築します。
|
FilteredList(ObservableList<E> source, Predicate<? super E> predicate)
ソース・リストの周囲にある新しいFilteredListラッパーを構築します。
|
| 修飾子と型 | メソッドと説明 |
|---|---|
E |
get(int index)
このリスト内の指定された位置にある要素を返します。
|
Predicate<? super E> |
getPredicate()
プロパティpredicateの値を取得します。
|
int |
getSourceIndex(int index)
このリストの要素の索引を直接ソース・リストの索引にマップします。
|
ObjectProperty<Predicate<? super E>> |
predicateProperty()
このFilteredListにある要素と一致する述語。
|
void |
setPredicate(Predicate<? super E> predicate)
プロパティpredicateの値を設定します。
|
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<Predicate<? super E>> predicateProperty
public FilteredList(ObservableList<E> source, Predicate<? super E> predicate)
source - ソース・リストpredicate - 要素に一致する述語、またはすべての要素に一致するnull。public FilteredList(ObservableList<E> source)
このコンストラクタは、このリストのpredicateProperty()をバインドする場合に役立ちます。
source - ソース・リストpublic final ObjectProperty<Predicate<? super E>> predicateProperty()
public final Predicate<? super E> getPredicate()
public final void setPredicate(Predicate<? super E> predicate)
protected void sourceChanged(ListChangeListener.Change<? extends E> c)
TransformationListsourceChanged、クラスTransformationList<E,E>c - 変更public int size()
size、インタフェースCollection<E>size、インタフェースList<E>size、クラスAbstractCollection<E>public E get(int index)
get、インタフェースList<E>get、クラスAbstractList<E>index - 返される要素のインデックスIndexOutOfBoundsExceptionpublic int getSourceIndex(int index)
TransformationListgetSourceIndex、クラスTransformationList<E,E>index - このリストの索引TransformationList.getSource()Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.