E
- Set
要素の型public abstract class ReadOnlySetProperty<E> extends SetExpression<E> implements ReadOnlyProperty<ObservableSet<E>>
ObservableSet
をラップするすべての読取り専用プロパティのスーパークラス。ObservableSet
、ObservableSetValue
、SetExpression
、ReadOnlyProperty
empty, size
コンストラクタと説明 |
---|
ReadOnlySetProperty()
ReadOnlySetProperty のコンストラクタ。 |
修飾子と型 | メソッドと説明 |
---|---|
void |
bindContent(ObservableSet<E> set)
|
void |
bindContentBidirectional(ObservableSet<E> set)
|
boolean |
equals(Object obj) |
int |
hashCode()
この
ReadOnlySetProperty オブジェクトのハッシュ・コードを返します。 |
String |
toString()
この
ReadOnlySetProperty オブジェクトの文字列表現を返します。 |
void |
unbindContent(Object object)
|
void |
unbindContentBidirectional(Object object)
|
add, addAll, asString, clear, contains, containsAll, emptyProperty, getSize, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, iterator, remove, removeAll, retainAll, setExpression, size, sizeProperty, toArray, toArray
getBean, getName
addListener、getValue、removeListener
addListener、removeListener
get
addListener、removeListener
spliterator
parallelStream, removeIf, stream
public void bindContentBidirectional(ObservableSet<E> set)
ReadOnlySetProperty
でラップされるObservableSet
と別のObservableSet
の双方向コンテンツ・バインディングを作成します。
双方向コンテンツ・バインディングは、2つのObservableSets
の内容が同じであることを保証します。セットの一方の内容が変更されると、他方が自動的に更新されます。
set
- このプロパティがバインドされるObservableSet
NullPointerException
- set
がnull
である場合IllegalArgumentException
- set
がこのReadOnlySetProperty
の指すセットと同じである場合public void unbindContentBidirectional(Object object)
object
- 双方向バインディングを削除するObject
NullPointerException
- object
がnull
である場合IllegalArgumentException
- object
がこのReadOnlySetProperty
が指すセットと同じである場合public void bindContent(ObservableSet<E> set)
ReadOnlySetProperty
でラップされるObservableSet
と別のObservableSet
間のコンテンツ・バインディングを作成します。
コンテンツ・バインディングは、ラップされたObservableSets
の内容が他のセットの内容と同じであることを保証します。一方のセットの内容が変更されると、ラップされたセットが自動的に更新されます。ラップされたセットが別のセットにバインドされた後は、直接変更しないでください。
set
- このプロパティがバインドされるObservableSet
NullPointerException
- set
がnull
である場合IllegalArgumentException
- set
がこのReadOnlySetProperty
の指すセットと同じである場合public void unbindContent(Object object)
object
- バインディングを削除するObject
NullPointerException
- object
がnull
である場合IllegalArgumentException
- object
がこのReadOnlySetProperty
が指すセットと同じである場合public boolean equals(Object obj)
public int hashCode()
ReadOnlySetProperty
オブジェクトのハッシュ・コードを返します。Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.