S - Styleableの型public class StyleablePropertyFactory<S extends Styleable> extends Object
StyleablePropertyFactoryを静的メンバーとして作成することをお薦めします。
public final class MyButton extends Button {
private static final StyleablePropertyFactory<MyButton> FACTORY = new StyleablePropertyFactory<>(Button.getClassCssMetaData());
MyButton(String labelText) {
super(labelText);
getStyleClass().add("my-button");
}
// Typical JavaFX property implementation
public ObservableValue<Boolean> selectedProperty() { return ( ObservableValue<Boolean>)selected; }
public final boolean isSelected() { return selected.getValue(); }
public final void setSelected(boolean isSelected) { selected.setValue(isSelected); }
// StyleableProperty implementation reduced to one line
private final StyleableProperty<Boolean> selected =
FACTORY.createStyleableBooleanProperty(this, "selected", "-my-selected", s -> s.selected);
@Override
public List<CssMetaData<? extends Styleable, ?>> getControlCssMetaData() {
return FACTORY.getCssMetaData();
}
}
前述の例は、StyleablePropertyFactoryの最も単純な使用方法です。 ただし、この使用方法では、getClassCssMetaData()で有効な静的CssMetaDataが指定されていません(これについては、CssMetaDataのjavadocで説明されています)。 ただし、静的CssMetaDataはStyleablePropertyFactoryメソッドを介して作成でき、次の例に示すようにStyleablePropertyインスタンスを作成するメソッドによって返されます。 静的メソッドgetClassCssMetaData()はJavaFXのコード・ベース全体で使用される規則ですが、getClassCssMetaData()メソッド自体は実行時に使用されません。
public final class MyButton extends Button {
private static final StyleablePropertyFactory<MyButton> FACTORY =
new StyleablePropertyFactory<>(Button.getClassCssMetaData());
private static final CssMetaData<MyButton, Boolean> SELECTED =
FACTORY.createBooleanCssMetaData("-my-selected", s -> s.selected, false, false);
MyButton(String labelText) {
super(labelText);
getStyleClass().add("my-button");
}
// Typical JavaFX property implementation
public ObservableValue<Boolean> selectedProperty() { return ( ObservableValue<Boolean>)selected; }
public final boolean isSelected() { return selected.getValue(); }
public final void setSelected(boolean isSelected) { selected.setValue(isSelected); }
// StyleableProperty implementation reduced to one line
private final StyleableProperty<Boolean> selected =
new SimpleStyleableBooleanProperty(SELECTED, this, "selected");
public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() {
return FACTORY.getCssMetaData();
}
@Override
public List<CssMetaData<? extends Styleable, ?>> getControlCssMetaData() {
return FACTORY.getCssMetaData();
}
}
これと同じことは、内部クラスを使用しても達成できます。 前の例では、new SimpleStyleableBooleanPropertyを呼び出してselectedプロパティを作成しました。 この例では、ファクトリを使用して、無名の内部クラスとともに作成されたCssMetaDataにアクセスします。 どの点においても、2つの例は同じです。
public final class MyButton extends Button {
private static final StyleablePropertyFactory<MyButton> FACTORY =
new StyleablePropertyFactory<>(Button.getClassCssMetaData()) {
{
createBooleanCssMetaData("-my-selected", s -> s.selected, false, false);
}
}
MyButton(String labelText) {
super(labelText);
getStyleClass().add("my-button");
}
// Typical JavaFX property implementation
public ObservableValue<Boolean> selectedProperty() { return ( ObservableValue<Boolean>)selected; }
public final boolean isSelected() { return selected.getValue(); }
public final void setSelected(boolean isSelected) { selected.setValue(isSelected); }
// StyleableProperty implementation reduced to one line
private final StyleableProperty<Boolean> selected =
new SimpleStyleableBooleanProperty(this, "selected", "my-selected");
public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() {
return FACTORY.getCssMetaData();
}
@Override
public List<CssMetaData<? extends Styleable, ?>> getControlCssMetaData() {
return FACTORY.getCssMetaData();
}
}
Caveats:
数値を使用してStyleablePropertyを作成する唯一のオプションは、StyleableProperty <Number>を作成することです。 StyleablePropertyのgetValue()メソッドの戻り値は数値です。 このため、JavaFXプロパティのgetメソッドは、戻り型に対して正しいvalueメソッドを呼び出す必要があります。 たとえば、次のようになります。
public ObservableValue offsetProperty() { return (ObservableValue)offset; }
public Double getOffset() { return offset.getValue().doubleValue(); }
public void setOffset(Double value) { offset.setValue(value); }
private final StyleableProperty offset = FACTORY.createStyleableNumberProperty(this, "offset", "-my-offset", s -> ((MyButton)s).offset);
| コンストラクタと説明 |
|---|
StyleablePropertyFactory(List<CssMetaData<? extends Styleable,?>> parentCssMetaData)
コンストラクタには、通常は親の静的
getClassCssMetaData()メソッドを呼び出すことによって、<S>の親クラスのCssMetaDataが渡されます。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
CssMetaData<S,Boolean> |
createBooleanCssMetaData(String property, Function<S,StyleableProperty<Boolean>> function)
CssMetaData<S, Boolean>を初期値で作成し、フラグを継承します。いずれもfalseにデフォルト設定されます。
|
CssMetaData<S,Boolean> |
createBooleanCssMetaData(String property, Function<S,StyleableProperty<Boolean>> function, boolean initialValue)
CssMetaData<S, Boolean>を初期値で作成し、falseにデフォルト設定されるフラグを継承します。
|
CssMetaData<S,Boolean> |
createBooleanCssMetaData(String property, Function<S,StyleableProperty<Boolean>> function, boolean initialValue, boolean inherits)
CssMetaData<S, Boolean>を初期値で作成し、フラグを継承します。
|
CssMetaData<S,Color> |
createColorCssMetaData(String property, Function<S,StyleableProperty<Color>> function)
CssMetaData<S, Color>を初期値Color.BLACKで作成し、falseにデフォルト設定されるフラグを継承します。
|
CssMetaData<S,Color> |
createColorCssMetaData(String property, Function<S,StyleableProperty<Color>> function, Color initialValue)
CssMetaData<S, Color>を初期値で作成し、falseにデフォルト設定されるフラグを継承します。
|
CssMetaData<S,Color> |
createColorCssMetaData(String property, Function<S,StyleableProperty<Color>> function, Color initialValue, boolean inherits)
CssMetaData<S, Color>を初期値で作成し、フラグを継承します。
|
CssMetaData<S,Duration> |
createDurationCssMetaData(String property, Function<S,StyleableProperty<Duration>> function)
CssMetaData<S, Duration>を初期値Duration.BLACKで作成し、falseにデフォルト設定されるフラグを継承します。
|
CssMetaData<S,Duration> |
createDurationCssMetaData(String property, Function<S,StyleableProperty<Duration>> function, Duration initialValue)
CssMetaData<S, Duration>を初期値で作成し、falseにデフォルト設定されるフラグを継承します。
|
CssMetaData<S,Duration> |
createDurationCssMetaData(String property, Function<S,StyleableProperty<Duration>> function, Duration initialValue, boolean inherits)
CssMetaData<S, Duration>を初期値で作成し、フラグを継承します。
|
<E extends Effect> |
createEffectCssMetaData(String property, Function<S,StyleableProperty<E>> function)
CssMetaData<S, Effect>を初期値nullで作成し、falseにデフォルト設定されるフラグを継承します。
|
<E extends Effect> |
createEffectCssMetaData(String property, Function<S,StyleableProperty<E>> function, E initialValue)
CssMetaData<S, Effect>を初期値で作成し、falseにデフォルト設定されるフラグを継承します。
|
<E extends Effect> |
createEffectCssMetaData(String property, Function<S,StyleableProperty<E>> function, E initialValue, boolean inherits)
CssMetaData<S, Effect>を初期値で作成し、フラグを継承します。
|
<E extends Enum<E>> |
createEnumCssMetaData(Class<? extends Enum> enumClass, String property, Function<S,StyleableProperty<E>> function)
CssMetaData<S, Enum>を初期値nullで作成し、falseにデフォルト設定されるフラグを継承します。
|
<E extends Enum<E>> |
createEnumCssMetaData(Class<? extends Enum> enumClass, String property, Function<S,StyleableProperty<E>> function, E initialValue)
CssMetaData<S, Enum>を初期値で作成し、falseにデフォルト設定されるフラグを継承します。
|
<E extends Enum<E>> |
createEnumCssMetaData(Class<? extends Enum> enumClass, String property, Function<S,StyleableProperty<E>> function, E initialValue, boolean inherits)
CssMetaData<S, Enum>を初期値で作成し、フラグを継承します。
|
CssMetaData<S,Font> |
createFontCssMetaData(String property, Function<S,StyleableProperty<Font>> function)
CssMetaData<S, Font>を初期値
Font.getDefault()で作成し、trueにデフォルト設定されるフラグを継承します。 |
CssMetaData<S,Font> |
createFontCssMetaData(String property, Function<S,StyleableProperty<Font>> function, Font initialValue)
CssMetaData<S, Font>を初期値で作成し、trueにデフォルト設定されるフラグを継承します。
|
CssMetaData<S,Font> |
createFontCssMetaData(String property, Function<S,StyleableProperty<Font>> function, Font initialValue, boolean inherits)
CssMetaData<S, Font>を初期値で作成し、フラグを継承します。
|
CssMetaData<S,Insets> |
createInsetsCssMetaData(String property, Function<S,StyleableProperty<Insets>> function)
CssMetaData<S, Insets>を初期値
javafx.geometry.Insets.EMPTYで作成し、falseにデフォルト設定されるフラグを継承します。 |
CssMetaData<S,Insets> |
createInsetsCssMetaData(String property, Function<S,StyleableProperty<Insets>> function, Insets initialValue)
CssMetaData<S, Insets>を初期値で作成し、falseにデフォルト設定されるフラグを継承します。
|
CssMetaData<S,Insets> |
createInsetsCssMetaData(String property, Function<S,StyleableProperty<Insets>> function, Insets initialValue, boolean inherits)
CssMetaData<S, Insets>を初期値で作成し、フラグを継承します。
|
CssMetaData<S,Paint> |
createPaintCssMetaData(String property, Function<S,StyleableProperty<Paint>> function)
CssMetaData<S, Paint>を初期値Color.BLACKで作成し、falseにデフォルト設定されるフラグを継承します。
|
CssMetaData<S,Paint> |
createPaintCssMetaData(String property, Function<S,StyleableProperty<Paint>> function, Paint initialValue)
CssMetaData<S, Paint>を初期値で作成し、falseにデフォルト設定されるフラグを継承します。
|
CssMetaData<S,Paint> |
createPaintCssMetaData(String property, Function<S,StyleableProperty<Paint>> function, Paint initialValue, boolean inherits)
CssMetaData<S, Paint>を初期値で作成し、フラグを継承します。
|
CssMetaData<S,Number> |
createSizeCssMetaData(String property, Function<S,StyleableProperty<Number>> function)
CssMetaData<S, Number>を初期値
0dで作成し、falseにデフォルト設定されるフラグを継承します。 |
CssMetaData<S,Number> |
createSizeCssMetaData(String property, Function<S,StyleableProperty<Number>> function, Number initialValue)
CssMetaData<S, Number>を初期値で作成し、falseにデフォルト設定されるフラグを継承します。
|
CssMetaData<S,Number> |
createSizeCssMetaData(String property, Function<S,StyleableProperty<Number>> function, Number initialValue, boolean inherits)
CssMetaData<S, Number>を初期値で作成し、フラグを継承します。
|
CssMetaData<S,String> |
createStringCssMetaData(String property, Function<S,StyleableProperty<String>> function)
CssMetaData<S, String>を初期値nullで作成し、falseにデフォルト設定されるフラグを継承します。
|
CssMetaData<S,String> |
createStringCssMetaData(String property, Function<S,StyleableProperty<String>> function, String initialValue)
CssMetaData<S, String>を初期値で作成し、falseにデフォルト設定されるフラグを継承します。
|
CssMetaData<S,String> |
createStringCssMetaData(String property, Function<S,StyleableProperty<String>> function, String initialValue, boolean inherits)
CssMetaData<S, String>を初期値で作成し、フラグを継承します。
|
StyleableProperty<Boolean> |
createStyleableBooleanProperty(S styleable, String propertyName, String cssProperty)
指定された
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<Boolean>を作成します。 |
StyleableProperty<Boolean> |
createStyleableBooleanProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Boolean>> function)
StyleableProperty<Boolean>を作成します。
|
StyleableProperty<Boolean> |
createStyleableBooleanProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Boolean>> function, boolean initialValue)
StyleableProperty<Boolean>を初期値で作成します。
|
StyleableProperty<Boolean> |
createStyleableBooleanProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Boolean>> function, boolean initialValue, boolean inherits)
StyleableProperty<Boolean>を初期値で作成し、フラグを継承します。
|
StyleableProperty<Color> |
createStyleableColorProperty(S styleable, String propertyName, String cssProperty)
指定された
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<Color>を作成します。 |
StyleableProperty<Color> |
createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function)
StyleableProperty<Color>を作成します。
|
StyleableProperty<Color> |
createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function, Color initialValue)
StyleableProperty<Color>を初期値で作成します。
|
StyleableProperty<Color> |
createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function, Color initialValue, boolean inherits)
StyleableProperty<Color>を初期値で作成し、フラグを継承します。
|
StyleableProperty<Duration> |
createStyleableDurationProperty(S styleable, String propertyName, String cssProperty)
指定された
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<Duration>を作成します。 |
StyleableProperty<Duration> |
createStyleableDurationProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Duration>> function)
StyleableProperty<Duration>を作成します。
|
StyleableProperty<Duration> |
createStyleableDurationProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Duration>> function, Duration initialValue)
StyleableProperty<Duration>を初期値で作成します。
|
StyleableProperty<Duration> |
createStyleableDurationProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Duration>> function, Duration initialValue, boolean inherits)
StyleableProperty<Duration>を初期値で作成し、フラグを継承します。
|
StyleableProperty<Effect> |
createStyleableEffectProperty(S styleable, String propertyName, String cssProperty)
指定された
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<Effect>を作成します。 |
<E extends Enum<E>> |
createStyleableEffectProperty(S styleable, String propertyName, String cssProperty, Class<E> enumClass)
指定された
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<E extends Enum<E>>を作成します。 |
<E extends Effect> |
createStyleableEffectProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<E>> function)
StyleableProperty<Effect>を作成します。
|
<E extends Effect> |
createStyleableEffectProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<E>> function, E initialValue)
StyleableProperty<Effect>を初期値で作成します。
|
<E extends Effect> |
createStyleableEffectProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<E>> function, E initialValue, boolean inherits)
StyleableProperty<Effect>を初期値で作成し、フラグを継承します。
|
<E extends Enum<E>> |
createStyleableEnumProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<E>> function, Class<E> enumClass)
StyleableProperty<E extends Enum<E>>を作成します。
|
<E extends Enum<E>> |
createStyleableEnumProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<E>> function, Class<E> enumClass, E initialValue)
StyleableProperty<E extends Enum<E>>を初期値で作成します。
|
<E extends Enum<E>> |
createStyleableEnumProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<E>> function, Class<E> enumClass, E initialValue, boolean inherits)
StyleableProperty<E extends Enum<E>>を初期値で作成し、フラグを継承します。
|
StyleableProperty<Font> |
createStyleableFontProperty(S styleable, String propertyName, String cssProperty)
指定された
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<Font>を作成します。 |
StyleableProperty<Font> |
createStyleableFontProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Font>> function)
StyleableProperty<Font>を作成します。
|
StyleableProperty<Font> |
createStyleableFontProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Font>> function, Font initialValue)
StyleableProperty<Font>を初期値で作成します。
|
StyleableProperty<Font> |
createStyleableFontProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Font>> function, Font initialValue, boolean inherits)
StyleableProperty<Font>を初期値で作成し、フラグを継承します。
|
StyleableProperty<Insets> |
createStyleableInsetsProperty(S styleable, String propertyName, String cssProperty)
指定された
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<Insets>を作成します。 |
StyleableProperty<Insets> |
createStyleableInsetsProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Insets>> function)
StyleableProperty<Inset>を作成します。
|
StyleableProperty<Insets> |
createStyleableInsetsProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Insets>> function, Insets initialValue)
StyleableProperty<Inset>を初期値で作成します。
|
StyleableProperty<Insets> |
createStyleableInsetsProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Insets>> function, Insets initialValue, boolean inherits)
StyleableProperty<Inset>を初期値で作成し、フラグを継承します。
|
StyleableProperty<Number> |
createStyleableNumberProperty(S styleable, String propertyName, String cssProperty)
指定された
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<Number>を作成します。 |
StyleableProperty<Number> |
createStyleableNumberProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Number>> function)
StyleableProperty<Number>を作成します。
|
StyleableProperty<Number> |
createStyleableNumberProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Number>> function, Number initialValue)
StyleableProperty<Number>を初期値で作成します。
|
StyleableProperty<Number> |
createStyleableNumberProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Number>> function, Number initialValue, boolean inherits)
StyleableProperty<Number>を初期値で作成し、フラグを継承します。
|
StyleableProperty<Paint> |
createStyleablePaintProperty(S styleable, String propertyName, String cssProperty)
指定された
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<Paint>を作成します。 |
StyleableProperty<Paint> |
createStyleablePaintProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Paint>> function)
StyleableProperty<Paint>を作成します。
|
StyleableProperty<Paint> |
createStyleablePaintProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Paint>> function, Paint initialValue)
StyleableProperty<Paint>を初期値で作成します。
|
StyleableProperty<Paint> |
createStyleablePaintProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Paint>> function, Paint initialValue, boolean inherits)
StyleableProperty<Paint>を初期値で作成し、フラグを継承します。
|
StyleableProperty<String> |
createStyleableStringProperty(S styleable, String propertyName, String cssProperty)
指定された
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<String>を作成します。 |
StyleableProperty<String> |
createStyleableStringProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<String>> function)
StyleableProperty<String>を作成します。
|
StyleableProperty<String> |
createStyleableStringProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<String>> function, String initialValue)
StyleableProperty<String>を初期値で作成します。
|
StyleableProperty<String> |
createStyleableStringProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<String>> function, String initialValue, boolean inherits)
StyleableProperty<String>を初期値で作成し、フラグを継承します。
|
StyleableProperty<String> |
createStyleableUrlProperty(S styleable, String propertyName, String cssProperty)
指定された
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<String>を作成します。 |
StyleableProperty<String> |
createStyleableUrlProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<String>> function)
StyleableProperty<String>を初期値で作成します。
|
StyleableProperty<String> |
createStyleableUrlProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<String>> function, String initialValue)
StyleableProperty<String>を初期値で作成します。
|
StyleableProperty<String> |
createStyleableUrlProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<String>> function, String initialValue, boolean inherits)
StyleableProperty<String>を初期値で作成し、フラグを継承します。
|
CssMetaData<S,String> |
createUrlCssMetaData(String property, Function<S,StyleableProperty<String>> function)
CssMetaData<S, String>を初期値nullで作成し、falseにデフォルト設定されるフラグを継承します。
|
CssMetaData<S,String> |
createUrlCssMetaData(String property, Function<S,StyleableProperty<String>> function, String initialValue)
CssMetaData<S, String>を初期値で作成し、falseにデフォルト設定されるフラグを継承します。
|
CssMetaData<S,String> |
createUrlCssMetaData(String property, Function<S,StyleableProperty<String>> function, String initialValue, boolean inherits)
CssMetaData<S, String>を初期値で作成し、フラグを継承します。
|
List<CssMetaData<? extends Styleable,?>> |
getCssMetaData()
指定されたStyleableのCssMetaDataを取得します。
|
public StyleablePropertyFactory(List<CssMetaData<? extends Styleable,?>> parentCssMetaData)
getClassCssMetaData()メソッドを呼び出すことによって、<S>の親クラスのCssMetaDataが渡されます。parentCssMetaData - <S>の親クラスのCssMetaData、またはnull。public final List<CssMetaData<? extends Styleable,?>> getCssMetaData()
Styleable.getCssMetaData()メソッドから呼び出される必要があります。 コントロールの場合、このメソッドはControl.getControlCssMetaData()メソッドから呼び出される必要があります。 public final StyleableProperty<Boolean> createStyleableBooleanProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Boolean>> function, boolean initialValue, boolean inherits)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Boolean>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Boolean>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否public final StyleableProperty<Boolean> createStyleableBooleanProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Boolean>> function, boolean initialValue)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Boolean>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Boolean>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 public final StyleableProperty<Boolean> createStyleableBooleanProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Boolean>> function)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Boolean>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Boolean>を返す関数。public final StyleableProperty<Boolean> createStyleableBooleanProperty(S styleable, String propertyName, String cssProperty)
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<Boolean>を作成します。styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Boolean>のフィールド名cssProperty - CSSプロパティ名IllegalArgumentException - cssPropertyがnullまたは空の場合NoSuchElementException - このメソッドの呼出し前にcssPropertyのCssMetaDataが作成されていなかった場合public final StyleableProperty<Color> createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function, Color initialValue, boolean inherits)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Color>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Color>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否public final StyleableProperty<Color> createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function, Color initialValue)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Color>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Color>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 public final StyleableProperty<Color> createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Color>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Color>を返す関数。public final StyleableProperty<Color> createStyleableColorProperty(S styleable, String propertyName, String cssProperty)
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<Color>を作成します。styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Color>のフィールド名cssProperty - CSSプロパティ名IllegalArgumentException - cssPropertyがnullまたは空の場合NoSuchElementException - このメソッドの呼出し前にcssPropertyのCssMetaDataが作成されていなかった場合public final StyleableProperty<Duration> createStyleableDurationProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Duration>> function, Duration initialValue, boolean inherits)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Duration>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Duration>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否public final StyleableProperty<Duration> createStyleableDurationProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Duration>> function, Duration initialValue)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Duration>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Duration>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 public final StyleableProperty<Duration> createStyleableDurationProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Duration>> function)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Duration>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Duration>を返す関数。public final StyleableProperty<Duration> createStyleableDurationProperty(S styleable, String propertyName, String cssProperty)
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<Duration>を作成します。styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Duration>のフィールド名cssProperty - CSSプロパティ名IllegalArgumentException - cssPropertyがnullまたは空の場合NoSuchElementException - このメソッドの呼出し前にcssPropertyのCssMetaDataが作成されていなかった場合public final <E extends Effect> StyleableProperty<E> createStyleableEffectProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<E>> function, E initialValue, boolean inherits)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Effect>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Effect>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否public final <E extends Effect> StyleableProperty<E> createStyleableEffectProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<E>> function, E initialValue)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Effect>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Effect>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 public final <E extends Effect> StyleableProperty<E> createStyleableEffectProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<E>> function)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Effect>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Effect>を返す関数。public final StyleableProperty<Effect> createStyleableEffectProperty(S styleable, String propertyName, String cssProperty)
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<Effect>を作成します。styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Effect>のフィールド名cssProperty - CSSプロパティ名IllegalArgumentException - cssPropertyがnullまたは空の場合NoSuchElementException - このメソッドの呼出し前にcssPropertyのCssMetaDataが作成されていなかった場合public final <E extends Enum<E>> StyleableProperty<E> createStyleableEnumProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<E>> function, Class<E> enumClass, E initialValue, boolean inherits)
enumClassパラメータは、プロパティの値であるEnumのクラスです。 たとえば、次のようになります。
private static final StyleablePropertyFactory<MyControl> FACTORY = new StyleablePropertyFactory<>();
StyleableProperty<Orientation> orientation =
FACTORY.createStyleableEnumProperty(
this,
"orientation",
"-my-orientation",
s -> ((MyControl)s).orientation,
Orientation.class,
Orientation.HORIZONTAL,
false);
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<E extends Enum<E>>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<E extends Enum<E>>を返す関数。enumClass - StyleableProperty<E extends Enum<E>>の型であるEnumクラス。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否public final <E extends Enum<E>> StyleableProperty<E> createStyleableEnumProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<E>> function, Class<E> enumClass, E initialValue)
enumClassパラメータは、プロパティの値であるEnumのクラスです。 たとえば、次のようになります。
private static final StyleablePropertyFactory<MyControl> FACTORY = new StyleablePropertyFactory<>();
StyleableProperty<Orientation> orientation =
FACTORY.createStyleableEnumProperty(
this,
"orientation",
"-my-orientation",
s -> ((MyControl)s).orientation,
Orientation.class,
Orientation.HORIZONTAL);
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<E extends Enum<E>>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<E extends Enum<E>>を返す関数。enumClass - StyleableProperty<E extends Enum<E>>の型であるEnumクラス。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 public final <E extends Enum<E>> StyleableProperty<E> createStyleableEnumProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<E>> function, Class<E> enumClass)
enumClassパラメータは、プロパティの値であるEnumのクラスです。 たとえば、次のようになります。
private static final StyleablePropertyFactory<MyControl> FACTORY = new StyleablePropertyFactory<>();
StyleableProperty<Orientation> orientation =
FACTORY.createStyleableEnumProperty(
this,
"orientation",
"-my-orientation",
s -> ((MyControl)s).orientation,
Orientation.class);
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<E extends Enum<E>>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<E extends Enum<E>>を返す関数。enumClass - StyleableProperty<E extends Enum<E>>の型であるEnumクラス。public final <E extends Enum<E>> StyleableProperty<E> createStyleableEffectProperty(S styleable, String propertyName, String cssProperty, Class<E> enumClass)
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<E extends Enum<E>>を作成します。styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<E extends Enum<E>>のフィールド名cssProperty - CSSプロパティ名IllegalArgumentException - cssPropertyがnullまたは空の場合NoSuchElementException - このメソッドの呼出し前にcssPropertyのCssMetaDataが作成されていなかった場合public final StyleableProperty<Font> createStyleableFontProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Font>> function, Font initialValue, boolean inherits)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Font>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Font>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否public final StyleableProperty<Font> createStyleableFontProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Font>> function, Font initialValue)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Font>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Font>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 public final StyleableProperty<Font> createStyleableFontProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Font>> function)
Font.getDefault()にデフォルト設定され、継承フラグはtrueにデフォルト設定されます。 styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Font>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Font>を返す関数。public final StyleableProperty<Font> createStyleableFontProperty(S styleable, String propertyName, String cssProperty)
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<Font>を作成します。styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Font>のフィールド名cssProperty - CSSプロパティ名IllegalArgumentException - cssPropertyがnullまたは空の場合NoSuchElementException - このメソッドの呼出し前にcssPropertyのCssMetaDataが作成されていなかった場合public final StyleableProperty<Insets> createStyleableInsetsProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Insets>> function, Insets initialValue, boolean inherits)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Inset>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Inset>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否public final StyleableProperty<Insets> createStyleableInsetsProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Insets>> function, Insets initialValue)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Inset>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Inset>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 public final StyleableProperty<Insets> createStyleableInsetsProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Insets>> function)
Insets.EMPTYで、継承フラグはfalseにデフォルト設定されます。 styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Inset>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Inset>を返す関数。public final StyleableProperty<Insets> createStyleableInsetsProperty(S styleable, String propertyName, String cssProperty)
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<Insets>を作成します。styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Insets>のフィールド名cssProperty - CSSプロパティ名IllegalArgumentException - cssPropertyがnullまたは空の場合NoSuchElementException - このメソッドの呼出し前にcssPropertyのCssMetaDataが作成されていなかった場合public final StyleableProperty<Paint> createStyleablePaintProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Paint>> function, Paint initialValue, boolean inherits)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Paint>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Paint>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否public final StyleableProperty<Paint> createStyleablePaintProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Paint>> function, Paint initialValue)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Paint>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Paint>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 public final StyleableProperty<Paint> createStyleablePaintProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Paint>> function)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Paint>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Paint>を返す関数。public final StyleableProperty<Paint> createStyleablePaintProperty(S styleable, String propertyName, String cssProperty)
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<Paint>を作成します。styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Paint>のフィールド名cssProperty - CSSプロパティ名IllegalArgumentException - cssPropertyがnullまたは空の場合NoSuchElementException - このメソッドの呼出し前にcssPropertyのCssMetaDataが作成されていなかった場合public final StyleableProperty<Number> createStyleableNumberProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Number>> function, Number initialValue, boolean inherits)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Number>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Number>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否public final StyleableProperty<Number> createStyleableNumberProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Number>> function, Number initialValue)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Number>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Number>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 public final StyleableProperty<Number> createStyleableNumberProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Number>> function)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Number>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<Number>を返す関数。public final StyleableProperty<Number> createStyleableNumberProperty(S styleable, String propertyName, String cssProperty)
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<Number>を作成します。styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<Number>のフィールド名cssProperty - CSSプロパティ名IllegalArgumentException - cssPropertyがnullまたは空の場合NoSuchElementException - このメソッドの呼出し前にcssPropertyのCssMetaDataが作成されていなかった場合public final StyleableProperty<String> createStyleableStringProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<String>> function, String initialValue, boolean inherits)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<String>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<String>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否public final StyleableProperty<String> createStyleableStringProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<String>> function, String initialValue)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<String>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<String>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 public final StyleableProperty<String> createStyleableStringProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<String>> function)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<String>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<String>を返す関数。public final StyleableProperty<String> createStyleableStringProperty(S styleable, String propertyName, String cssProperty)
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<String>を作成します。styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<String>のフィールド名cssProperty - CSSプロパティ名IllegalArgumentException - cssPropertyがnullまたは空の場合NoSuchElementException - このメソッドの呼出し前にcssPropertyのCssMetaDataが作成されていなかった場合public final StyleableProperty<String> createStyleableUrlProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<String>> function, String initialValue, boolean inherits)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<String>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<String>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否public final StyleableProperty<String> createStyleableUrlProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<String>> function, String initialValue)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<String>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<String>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 public final StyleableProperty<String> createStyleableUrlProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<String>> function)
styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<String>のフィールド名cssProperty - CSSプロパティ名function - このメソッドの呼出しによって作成されたStyleableProperty<String>を返す関数。public final StyleableProperty<String> createStyleableUrlProperty(S styleable, String propertyName, String cssProperty)
cssPropertyに対して以前に作成されたCssMetaDataを使用して、StyleableProperty<String>を作成します。styleable - 返されるプロパティのthis参照。 これは、プロパティBeanでもありあす。 propertyName - StyleableProperty<String>のフィールド名cssProperty - CSSプロパティ名IllegalArgumentException - cssPropertyがnullまたは空の場合NoSuchElementException - このメソッドの呼出し前にcssPropertyのCssMetaDataが作成されていなかった場合public final CssMetaData<S,Boolean> createBooleanCssMetaData(String property, Function<S,StyleableProperty<Boolean>> function, boolean initialValue, boolean inherits)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Boolean>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Boolean> createBooleanCssMetaData(String property, Function<S,StyleableProperty<Boolean>> function, boolean initialValue)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Boolean>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Boolean> createBooleanCssMetaData(String property, Function<S,StyleableProperty<Boolean>> function)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Boolean>を返す関数。IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Color> createColorCssMetaData(String property, Function<S,StyleableProperty<Color>> function, Color initialValue, boolean inherits)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Color>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Color> createColorCssMetaData(String property, Function<S,StyleableProperty<Color>> function, Color initialValue)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Color>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Color> createColorCssMetaData(String property, Function<S,StyleableProperty<Color>> function)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Color>を返す関数。IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Duration> createDurationCssMetaData(String property, Function<S,StyleableProperty<Duration>> function, Duration initialValue, boolean inherits)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Duration>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Duration> createDurationCssMetaData(String property, Function<S,StyleableProperty<Duration>> function, Duration initialValue)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Duration>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Duration> createDurationCssMetaData(String property, Function<S,StyleableProperty<Duration>> function)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Duration>を返す関数。IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final <E extends Effect> CssMetaData<S,E> createEffectCssMetaData(String property, Function<S,StyleableProperty<E>> function, E initialValue, boolean inherits)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Effect>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final <E extends Effect> CssMetaData<S,E> createEffectCssMetaData(String property, Function<S,StyleableProperty<E>> function, E initialValue)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Effect>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final <E extends Effect> CssMetaData<S,E> createEffectCssMetaData(String property, Function<S,StyleableProperty<E>> function)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Effect>を返す関数。IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final <E extends Enum<E>> CssMetaData<S,E> createEnumCssMetaData(Class<? extends Enum> enumClass, String property, Function<S,StyleableProperty<E>> function, E initialValue, boolean inherits)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Enum>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final <E extends Enum<E>> CssMetaData<S,E> createEnumCssMetaData(Class<? extends Enum> enumClass, String property, Function<S,StyleableProperty<E>> function, E initialValue)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Enum>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final <E extends Enum<E>> CssMetaData<S,E> createEnumCssMetaData(Class<? extends Enum> enumClass, String property, Function<S,StyleableProperty<E>> function)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Enum>を返す関数。IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Font> createFontCssMetaData(String property, Function<S,StyleableProperty<Font>> function, Font initialValue, boolean inherits)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Font>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Font> createFontCssMetaData(String property, Function<S,StyleableProperty<Font>> function, Font initialValue)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Font>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Font> createFontCssMetaData(String property, Function<S,StyleableProperty<Font>> function)
Font.getDefault()で作成し、trueにデフォルト設定されるフラグを継承します。property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Font>を返す関数。IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Insets> createInsetsCssMetaData(String property, Function<S,StyleableProperty<Insets>> function, Insets initialValue, boolean inherits)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Insets>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Insets> createInsetsCssMetaData(String property, Function<S,StyleableProperty<Insets>> function, Insets initialValue)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Insets>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Insets> createInsetsCssMetaData(String property, Function<S,StyleableProperty<Insets>> function)
javafx.geometry.Insets.EMPTYで作成し、falseにデフォルト設定されるフラグを継承します。property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Insets>を返す関数。IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Paint> createPaintCssMetaData(String property, Function<S,StyleableProperty<Paint>> function, Paint initialValue, boolean inherits)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Paint>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Paint> createPaintCssMetaData(String property, Function<S,StyleableProperty<Paint>> function, Paint initialValue)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Paint>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Paint> createPaintCssMetaData(String property, Function<S,StyleableProperty<Paint>> function)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Paint>を返す関数。IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Number> createSizeCssMetaData(String property, Function<S,StyleableProperty<Number>> function, Number initialValue, boolean inherits)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Number>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Number> createSizeCssMetaData(String property, Function<S,StyleableProperty<Number>> function, Number initialValue)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Number>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,Number> createSizeCssMetaData(String property, Function<S,StyleableProperty<Number>> function)
0dで作成し、falseにデフォルト設定されるフラグを継承します。property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<Number>を返す関数。IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,String> createStringCssMetaData(String property, Function<S,StyleableProperty<String>> function, String initialValue, boolean inherits)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<String>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,String> createStringCssMetaData(String property, Function<S,StyleableProperty<String>> function, String initialValue)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<String>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,String> createStringCssMetaData(String property, Function<S,StyleableProperty<String>> function)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<String>を返す関数。IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,String> createUrlCssMetaData(String property, Function<S,StyleableProperty<String>> function, String initialValue, boolean inherits)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<String>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 inherits - 子ノードによるCSSスタイルの継承の可否IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,String> createUrlCssMetaData(String property, Function<S,StyleableProperty<String>> function, String initialValue)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<String>を返す関数。initialValue - プロパティの初期値。 CSSはプロパティをこの値にリセットする場合があります。 IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。public final CssMetaData<S,String> createUrlCssMetaData(String property, Function<S,StyleableProperty<String>> function)
property - CSSプロパティ名。function - このCssMetaDataに対応するStyleableProperty<String>を返す関数。IllegalArgumentException - propertyがnullまたは空の文字列である場合、またはfunctionがnullの場合。Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.