javafx.css.StyleConverter Java Examples
The following examples show how to use
javafx.css.StyleConverter.
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: JavaFXCompatibility.java From RichTextFX with BSD 2-Clause "Simplified" License | 6 votes |
/** * Java 8: com.sun.javafx.css.converters.SizeConverter.SequenceConverter.getInstance() * Java 9+: javafx.css.converter.SizeConverter.SequenceConverter.getInstance() */ @SuppressWarnings("unchecked") static StyleConverter<?, Number[]> SizeConverter_SequenceConverter_getInstance() { try { if (mSizeConverter_SequenceConverter_getInstance == null) { Class<?> c = Class.forName(isJava9orLater ? "javafx.css.converter.SizeConverter$SequenceConverter" : "com.sun.javafx.css.converters.SizeConverter$SequenceConverter"); mSizeConverter_SequenceConverter_getInstance = c.getMethod("getInstance"); } return (StyleConverter<?, Number[]>) mSizeConverter_SequenceConverter_getInstance.invoke(null); } catch (ClassNotFoundException | NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) { e.printStackTrace(); throw new Error(e); } }
Example #2
Source File: SVGIconConverter.java From ikonli with Apache License 2.0 | 4 votes |
public static StyleConverter<String, Ikon> getInstance() { return Holder.INSTANCE; }
Example #3
Source File: PaintConverter.java From ikonli with Apache License 2.0 | 4 votes |
private PaintConverter(StyleConverter<ParsedValue<?, Paint>, Paint> delegate) { this.delegate = delegate; }
Example #4
Source File: FontIconConverter.java From ikonli with Apache License 2.0 | 4 votes |
public static StyleConverter<String, Ikon> getInstance() { return Holder.INSTANCE; }
Example #5
Source File: RipplerMaskTypeConverter.java From JFoenix with Apache License 2.0 | 4 votes |
public static StyleConverter<String, RipplerMask> getInstance() { return Holder.INSTANCE; }
Example #6
Source File: IndicatorPositionConverter.java From JFoenix with Apache License 2.0 | 4 votes |
public static StyleConverter<String, IndicatorPosition> getInstance() { return Holder.INSTANCE; }
Example #7
Source File: DialogTransitionConverter.java From JFoenix with Apache License 2.0 | 4 votes |
public static StyleConverter<String, DialogTransition> getInstance() { return Holder.INSTANCE; }
Example #8
Source File: ButtonTypeConverter.java From JFoenix with Apache License 2.0 | 4 votes |
public static StyleConverter<String, ButtonType> getInstance() { return Holder.INSTANCE; }
Example #9
Source File: CustomCssMetaData.java From RichTextFX with BSD 2-Clause "Simplified" License | 4 votes |
CustomCssMetaData(String property, StyleConverter<?, V> converter, V initialValue, Function<S, StyleableObjectProperty<V>> getStyleableProperty) { super(property, converter, initialValue); this.property = getStyleableProperty; }
Example #10
Source File: JavaFXCompatibility.java From RichTextFX with BSD 2-Clause "Simplified" License | 4 votes |
static StyleConverter<?, Number[]> SizeConverter_SequenceConverter_getInstance() { return SizeConverter.SequenceConverter.getInstance(); }
Example #11
Source File: DefaultPropertyBasedCssMetaData.java From dolphin-platform with Apache License 2.0 | 2 votes |
/** * Default Constructor * * @param property name of the CSS property * @param converter the StyleConverter used to convert the CSS parsed value to a Java object. * @param propertyName Name of the property field in the Styleable class * @param defaultValue The default value of the corresponding StyleableProperty */ public DefaultPropertyBasedCssMetaData(String property, StyleConverter<?, V> converter, String propertyName, V defaultValue) { super(property, converter, propertyName, defaultValue); }
Example #12
Source File: CssHelper.java From dolphin-platform with Apache License 2.0 | 2 votes |
/** * Creates a CssMetaData instance that can be used in a Styleable class. * * @param property name of the CSS property * @param converter the StyleConverter used to convert the CSS parsed value to a Java object. * @param propertyName Name of the property field in the Styleable class * @param defaultValue The default value of the corresponding StyleableProperty * @param <S> Type of the Styleable instance * @param <V> Value type of the property * @return the CssMetaData instance */ public static <S extends Styleable, V> DefaultPropertyBasedCssMetaData<S, V> createMetaData(String property, StyleConverter<?, V> converter, String propertyName, V defaultValue) { return new DefaultPropertyBasedCssMetaData<S, V>(property, converter, propertyName, defaultValue); }
Example #13
Source File: CssHelper.java From dolphin-platform with Apache License 2.0 | 2 votes |
/** * Creates a CssMetaData instance that can be used in the Skin of a Control. * * @param property name of the CSS property * @param converter the StyleConverter used to convert the CSS parsed value to a Java object. * @param propertyName Name of the property field in the Skin class * @param defaultValue The default value of the corresponding StyleableProperty * @param <S> Type of the Control * @param <V> Value type of the property * @return the CssMetaData instance */ public static <S extends Control, V> SkinPropertyBasedCssMetaData<S, V> createSkinMetaData(String property, StyleConverter<?, V> converter, String propertyName, V defaultValue) { return new SkinPropertyBasedCssMetaData<S, V>(property, converter, propertyName, defaultValue); }
Example #14
Source File: AbstractPropertyBasedCssMetaData.java From dolphin-platform with Apache License 2.0 | 2 votes |
/** * Default Constructor * * @param property name of the CSS property * @param converter the StyleConverter used to convert the CSS parsed value to a Java object. * @param propertyName Name of the property field * @param defaultValue The default value of the corresponding StyleableProperty */ public AbstractPropertyBasedCssMetaData(String property, StyleConverter<?, V> converter, String propertyName, V defaultValue) { super(property, converter, defaultValue); this.propertyName = propertyName; }
Example #15
Source File: SkinPropertyBasedCssMetaData.java From dolphin-platform with Apache License 2.0 | 2 votes |
/** * Default Constructor * * @param property name of the CSS property * @param converter the StyleConverter used to convert the CSS parsed value to a Java object. * @param propertyName Name of the property field in the Skin class * @param defaultValue The default value of the corresponding StyleableProperty */ public SkinPropertyBasedCssMetaData(String property, StyleConverter<?, V> converter, String propertyName, V defaultValue) { super(property, converter, propertyName, defaultValue); }