- java.lang.Object
-
- javafx.beans.binding.StringExpression
-
- javafx.beans.property.ReadOnlyStringProperty
-
- javafx.beans.property.StringProperty
-
- すべての実装されたインタフェース:
Observable,Property<String>,ReadOnlyProperty<String>,ObservableObjectValue<String>,ObservableStringValue,ObservableValue<String>,WritableObjectValue<String>,WritableStringValue,WritableValue<String>
- 直系の既知のサブクラス:
JavaBeanStringProperty,StringPropertyBase
public abstract class StringProperty extends ReadOnlyStringProperty implements Property<String>, WritableStringValue
このクラスは、String値をラップするPropertyの完全な実装を提供します。StringPropertyの値は、ObservableObjectValue.get()、ObservableValue.getValue()、WritableObjectValue.set(Object)、およびWritableValue.setValue(String)を使用して取得および設定できます。Property.bind(ObservableValue)およびProperty.unbind()を使用して、プロパティを一方向にバインドおよびバインド解除できます。 双方向バインディングは、Property.bindBidirectional(Property)とProperty.unbindBidirectional(Property)を使用して作成および削除できます。ReadOnlyProperty.getBean()およびReadOnlyProperty.getName()を使用して、StringPropertyのコンテキストを読み取ることができます。- 導入されたバージョン:
- JavaFX 2.0
- 関連項目:
ObservableStringValue、WritableStringValue、ReadOnlyStringProperty、Property
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 StringProperty()
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 voidbindBidirectional(Property<?> other, Format format)このStringPropertyと別の任意のプロパティの間の双方向バインディングを作成します。<T> voidbindBidirectional(Property<T> other, StringConverter<T> converter)このStringPropertyと別の任意のプロパティの間の双方向バインディングを作成します。StringtoString()このStringPropertyオブジェクトの文字列表現を返します。voidunbindBidirectional(Object other)このPropertyと別のPropertyの間の双方向バインディングを削除します。-
クラス java.lang.Objectで宣言されたメソッド
clone、equals、finalize、getClass、hashCode、notify、notifyAll、wait、wait、wait
-
インタフェース javafx.beans.Observableで宣言されたメソッド
addListener、removeListener
-
インタフェース javafx.beans.value.ObservableObjectValueで宣言されたメソッド
get
-
インタフェース javafx.beans.value.ObservableValueで宣言されたメソッド
addListener、getValue、removeListener
-
インタフェース javafx.beans.property.Propertyで宣言されたメソッド
bind, bindBidirectional, isBound, unbind, unbindBidirectional
-
インタフェース javafx.beans.property.ReadOnlyPropertyで宣言されたメソッド
getBean, getName
-
クラス javafx.beans.binding.StringExpressionで宣言されたメソッド
concat, getValueSafe, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, isEmpty, isEqualTo, isEqualTo, isEqualToIgnoreCase, isEqualToIgnoreCase, isNotEmpty, isNotEqualTo, isNotEqualTo, isNotEqualToIgnoreCase, isNotEqualToIgnoreCase, isNotNull, isNull, length, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, stringExpression
-
インタフェース javafx.beans.value.WritableObjectValueで宣言されたメソッド
get, set
-
インタフェース javafx.beans.value.WritableValueで宣言されたメソッド
getValue, setValue
-
-
-
-
メソッドの詳細
-
bindBidirectional
public void bindBidirectional(Property<?> other, Format format)
このStringPropertyと別の任意のプロパティの間の双方向バインディングを作成します。 変換用のFormatの実装に依存します。- パラメータ:
other- 他のPropertyformat- このStringPropertyと他のProperty間の変換に使用されるFormat- 例外:
NullPointerException-otherまたはformatがnullである場合IllegalArgumentException-otherがthisである場合- 導入されたバージョン:
- JavaFX 2.1
-
bindBidirectional
public <T> void bindBidirectional(Property<T> other, StringConverter<T> converter)
このStringPropertyと別の任意のプロパティの間の双方向バインディングを作成します。 変換用のStringConverterの実装に依存します。- 型パラメータ:
T- ラップされたObjectの型- パラメータ:
other- 他のPropertyconverter- このStringPropertyと他のProperty間の変換に使用されるStringConverter- 例外:
NullPointerException-otherまたはconverterがnullである場合IllegalArgumentException-otherがthisである場合- 導入されたバージョン:
- JavaFX 2.1
-
unbindBidirectional
public void unbindBidirectional(Object other)
このPropertyと別のPropertyの間の双方向バインディングを削除します。 プロパティ間の双方向バインディングが存在しない場合、このメソッドの呼出しは影響しません。- パラメータ:
other- 他のProperty- 例外:
NullPointerException-otherがnullである場合IllegalArgumentException-otherがthisである場合- 導入されたバージョン:
- JavaFX 2.1
-
toString
public String toString()
このStringPropertyオブジェクトの文字列表現を返します。- オーバーライド:
toString、クラス:ReadOnlyStringProperty- 戻り値:
- この
StringPropertyオブジェクトの文字列表現。
-
-