E - Set要素の型public abstract class SetProperty<E> extends ReadOnlySetProperty<E> implements Property<ObservableSet<E>>, WritableSetValue<E>
ObservableSetをラップするPropertyの完全な実装を提供します。 ObservableObjectValue.get()、SetExpression.getValue()、WritableObjectValue.set(Object)およびsetValue(ObservableSet)を使用して、SetPropertyの値を取得および設定できます。 Property.bind(javafx.beans.value.ObservableValue)およびProperty.unbind()を使用して、プロパティを一方向にバインドおよびバインド解除できます。 bindBidirectional(Property)およびunbindBidirectional(Property)を使用して、双方向バインディングを作成および削除できます。 ReadOnlyProperty.getBean()およびReadOnlyProperty.getName()を使用して、SetPropertyのコンテキストを読み取ることができます。 ObservableSet、ObservableSetValue、WritableSetValue、ReadOnlySetProperty、Propertyempty, size| コンストラクタと説明 |
|---|
SetProperty() |
| 修飾子と型 | メソッドと説明 |
|---|---|
void |
bindBidirectional(Property<ObservableSet<E>> other)
この
Propertyと別のPropertyの間の双方向バインディングを作成します。 |
void |
setValue(ObservableSet<E> v)
ラップされた値を設定します。
|
String |
toString()
この
SetPropertyオブジェクトの文字列表現を返します。 |
void |
unbindBidirectional(Property<ObservableSet<E>> other)
この
Propertyと別のPropertyの間の双方向バインディングを削除します。 |
bindContent, bindContentBidirectional, equals, hashCode, unbindContent, unbindContentBidirectionaladd, addAll, asString, clear, contains, containsAll, emptyProperty, getSize, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, iterator, remove, removeAll, retainAll, setExpression, size, sizeProperty, toArray, toArraygetBean, getNameaddListener, getValue, removeListeneraddListener, removeListenerget, setgetValueaddListener, removeListeneradd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streamgetpublic void setValue(ObservableSet<E> v)
WritableValue<ObservableSet<E>>のsetValuev - 新しい値public void bindBidirectional(Property<ObservableSet<E>> other)
Propertyと別のPropertyの間の双方向バインディングを作成します。 双方向バインディングは、一方向バインディングと独立して存在します。 そのため、一方向バインディングを双方向バインディングを使用したプロパティに追加でき、その逆も可能です。 ただし、このプラクティスは推奨されていません。
1つのPropertyに複数の双方向バインディングを使用できます。
JavaFX双方向バインディング実装は、弱いリスナーを使用します。 これは、双方向バインディングによってプロパティがガベージ・コレクションされないことを意味します。
Property<ObservableSet<E>>のbindBidirectionalother - 他のPropertypublic void unbindBidirectional(Property<ObservableSet<E>> other)
Propertyと別のPropertyの間の双方向バインディングを削除します。 プロパティ間の双方向バインディングが存在しない場合、このメソッドの呼出しは影響しません。 2つ目のプロパティの呼出しによって、バインド解除できます。 このコードが動作します:
property1.bindBirectional(property2);
property2.unbindBidirectional(property1);
Property<ObservableSet<E>>のunbindBidirectionalother - 他のPropertypublic String toString()
SetPropertyオブジェクトの文字列表現を返します。toString、クラスReadOnlySetProperty<E>SetPropertyオブジェクトの文字列表現。Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.