public interface StyleableProperty<T> extends WritableValue<T>
javafx.beans.property
をCSSからスタイル設定できます。
このインタフェースにより、CSS処理とjavafx.beans.property
の間の調整が可能になります。実装では、値の設定が次の優先度の昇順で行われるようにし、重要度は等しいと仮定します。
Application.setUserAgentStylesheet(java.lang.String)
のユーザー・エージェント・スタイルシートのスタイルNode.setOpacity(double)
の呼出しなどの、コードからの値セットScene.getStylesheets()
またはParent.getStylesheets()
の作成者スタイルシートのスタイルNode.setStyle(java.lang.String)
のスタイルStyleablePropertyFactory
により、StyleablePropertyとそれに対応するCssMetaDataの作成が非常に単純化されます。
StyleablePropertyFactory
修飾子と型 | メソッドと説明 |
---|---|
void |
applyStyle(StyleOrigin origin, T value)
このメソッドは、プロパティの値を設定するためにCSSコードから呼び出されます。
|
CssMetaData<? extends Styleable,T> |
getCssMetaData()
この
javafx.beans.property.StyleableProperty に対応するCssMetaDataを反映します。 |
StyleOrigin |
getStyleOrigin()
プロパティの値の元を示します。
|
getValue, setValue
void applyStyle(StyleOrigin origin, T value)
StyleOrigin getStyleOrigin()
CssMetaData<? extends Styleable,T> getCssMetaData()
javafx.beans.property.StyleableProperty
に対応するCssMetaDataを反映します。Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.