javafx.css.SimpleStyleableObjectProperty Java Examples
The following examples show how to use
javafx.css.SimpleStyleableObjectProperty.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StyleableGauge.java From medusademo with Apache License 2.0 | 4 votes |
public StyleableGauge(@NamedArg("SKIN_TYPE") final SkinType SKIN_TYPE) { super(SKIN_TYPE); styleableTickmarkColor = new SimpleStyleableObjectProperty<>(TICKMARK_COLOR, this, "tickmark-color"); styleableTicklabelColor = new SimpleStyleableObjectProperty<>(TICKLABEL_COLOR, this, "ticklabel-color"); }
Example #2
Source File: Wordle.java From TweetwallFX with MIT License | 4 votes |
public SimpleStyleableObjectProperty<Font> fontProperty() { if (fontProperty == null) { fontProperty = new SimpleStyleableObjectProperty<>(StyleableProperties.FONT, Wordle.this, "-fx-font", Font.getDefault()); } return fontProperty; }
Example #3
Source File: CssHelper.java From dolphin-platform with Apache License 2.0 | 2 votes |
/** * Creates a StyleableObjectProperty instance that is parametrized by the given parameters. The returned property must be defined as a field in the given Styleable class. The property will be a <tt>SimpleStyleableObjectProperty</tt> * @param metaData The CssMetaData instance * @param styleable The styleable that contains the property field. Mostly this will be a JavaFX Control class * @param <S> Type of the Styleable * @param <V> value type of the property * @return a styleable property that can be used in a Styleable class like a Control * * @see SimpleStyleableObjectProperty */ public static <S extends Styleable, V> StyleableObjectProperty<V> createProperty(DefaultPropertyBasedCssMetaData<S, V> metaData, S styleable) { return new SimpleStyleableObjectProperty<V>(metaData, styleable, metaData.getPropertyName(), metaData.getInitialValue(styleable)); }
Example #4
Source File: CssHelper.java From dolphin-platform with Apache License 2.0 | 2 votes |
/** * Creates a StyleableObjectProperty instance that is parametrized by the given parameters. The property will be a <tt>SimpleStyleableObjectProperty</tt>. The returned property must be defined as a field in the Skin class of the given Control class. * @param metaData The CssMetaData instance * @param skin The Skin that contains the property field. * @param <S> Type of the Control * @param <V> value type of the property * @return a styleable property that can be used in the Skin of a Control * * @see SimpleStyleableObjectProperty */ public static <S extends Control, V> StyleableObjectProperty<V> createProperty(SkinPropertyBasedCssMetaData<S, V> metaData, SkinBase<S> skin) { return new SimpleStyleableObjectProperty<V>(metaData, skin, metaData.getPropertyName(), metaData.getInitialValue(skin.getSkinnable())); }