- java.lang.Object
-
- javafx.beans.binding.ListExpression<E>
-
- javafx.beans.property.ReadOnlyListProperty<E>
-
- javafx.beans.property.ListProperty<E>
-
- javafx.beans.property.ListPropertyBase<E>
-
- 型パラメータ:
E
-List
要素の型
- すべての実装されたインタフェース:
Iterable<E>
,Collection<E>
,List<E>
,Observable
,Property<ObservableList<E>>
,ReadOnlyProperty<ObservableList<E>>
,ObservableListValue<E>
,ObservableObjectValue<ObservableList<E>>
,ObservableValue<ObservableList<E>>
,WritableListValue<E>
,WritableObjectValue<ObservableList<E>>
,WritableValue<ObservableList<E>>
,ObservableList<E>
- 直系の既知のサブクラス:
SimpleListProperty
public abstract class ListPropertyBase<E> extends ListProperty<E>
クラスListPropertyBase
は、ObservableList
をラップするプロパティのベース・クラスです。 クラスを拡張して実装する必要があるReadOnlyProperty.getBean()
およびReadOnlyProperty.getName()
メソッドを除くプロパティに必要なすべての機能を提供します。- 導入されたバージョン:
- JavaFX 2.1
- 関連項目:
ObservableList
,ListProperty
-
-
プロパティのサマリー
プロパティ Type プロパティ 説明 ReadOnlyBooleanProperty
empty
リストが空である場合にtrue
であるブール型プロパティ。ReadOnlyIntegerProperty
size
リストのサイズを表す整数プロパティ。-
クラス javafx.beans.binding.ListExpressionで宣言されたプロパティ
empty, size
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 ListPropertyBase()
ListPropertyBase
のコンストラクタListPropertyBase(ObservableList<E> initialValue)
ListPropertyBase
のコンストラクタ。
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 protected void
fireValueChangedEvent()
通知をすべてのアタッチされたInvalidationListeners
、ChangeListeners
およびListChangeListener
に送信します。protected void
fireValueChangedEvent(ListChangeListener.Change<? extends E> change)
通知をすべてのアタッチされたInvalidationListeners
、ChangeListeners
およびListChangeListener
に送信します。protected void
invalidated()
メソッドinvalidated()
をオーバーライドして、無効な通知を受け取ることができます。String
toString()
このListPropertyBase
オブジェクトの文字列表現を返します。-
インタフェース java.util.Collectionで宣言されたメソッド
parallelStream, removeIf, stream
-
インタフェース java.util.Listで宣言されたメソッド
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
クラス javafx.beans.binding.ListExpressionで宣言されたメソッド
asString, emptyProperty, getSize, isEqualTo, isNotEqualTo, isNotNull, isNull, listExpression, sizeProperty, valueAt, valueAt
-
インタフェース javafx.beans.Observableで宣言されたメソッド
addListener、removeListener
-
インタフェース javafx.collections.ObservableListで宣言されたメソッド
addAll, addListener, filtered, remove, removeAll, removeListener, retainAll, setAll, setAll, sorted, sorted
-
インタフェース javafx.beans.value.ObservableObjectValueで宣言されたメソッド
get
-
インタフェース javafx.beans.value.ObservableValueで宣言されたメソッド
addListener、getValue、removeListener
-
インタフェース javafx.beans.property.Propertyで宣言されたメソッド
bind, bindBidirectional, isBound, unbind, unbindBidirectional
-
クラス javafx.beans.property.ReadOnlyListPropertyで宣言されたメソッド
bindContent, bindContentBidirectional, unbindContent, unbindContentBidirectional
-
インタフェース javafx.beans.property.ReadOnlyPropertyで宣言されたメソッド
getBean, getName
-
インタフェース javafx.beans.value.WritableObjectValueで宣言されたメソッド
get, set
-
インタフェース javafx.beans.value.WritableValueで宣言されたメソッド
getValue, setValue
-
-
-
-
プロパティ詳細
-
size
public ReadOnlyIntegerProperty sizeProperty
- 定義:
- クラス
ListExpression<E>
のsizeProperty
- 関連項目:
ListExpression.getSize()
-
empty
public ReadOnlyBooleanProperty emptyProperty
- 定義:
- クラス
ListExpression<E>
のemptyProperty
- 関連項目:
List.isEmpty()
-
-
コンストラクタの詳細
-
ListPropertyBase
public ListPropertyBase()
ListPropertyBase
のコンストラクタ
-
ListPropertyBase
public ListPropertyBase(ObservableList<E> initialValue)
ListPropertyBase
のコンストラクタ。- パラメータ:
initialValue
- ラップされた値の初期値
-
-
メソッドの詳細
-
fireValueChangedEvent
protected void fireValueChangedEvent()
通知をすべてのアタッチされたInvalidationListeners
、ChangeListeners
およびListChangeListener
に送信します。 このメソッドは、値が変更されるとWritableObjectValue.set(ObservableList)
を呼び出すことによって手動で、またはバインディングが無効になった場合にバインドされたプロパティの場合に呼び出されます。
-
fireValueChangedEvent
protected void fireValueChangedEvent(ListChangeListener.Change<? extends E> change)
通知をすべてのアタッチされたInvalidationListeners
、ChangeListeners
およびListChangeListener
に送信します。 このメソッドは、リストの内容が変更される場合に呼び出されます。- パラメータ:
change
- 伝播する必要がある変更
-
invalidated
protected void invalidated()
メソッドinvalidated()
をオーバーライドして、無効な通知を受け取ることができます。 メモリーの消費が少ないため、これはプロパティを定義するObjects
の推奨オプションです。 デフォルトの実装は空です。
-
toString
public String toString()
このListPropertyBase
オブジェクトの文字列表現を返します。- オーバーライド:
toString
、クラス:ListProperty<E>
- 戻り値:
- この
ListPropertyBase
オブジェクトの文字列表現。
-
-