< prev index next >

modules/javafx.graphics/src/main/java/javafx/css/StyleConverter.java

Print this page

        

*** 61,83 **** import java.util.Map; import java.util.WeakHashMap; /** ! * StyleConverter converts {@code ParsedValue&tl;F,T&gt;} from type F to type T. The * {@link CssMetaData} API requires a {@code StyleConverter} which is used * when computing a value for the {@see StyleableProperty}. There are * a number of predefined converters which are accessible by the static * methods of this class. * ! * F is the type of the parsed value, T is the converted type of * the ParsedValueImpl. For example, a converter from String to Color would * be declared * <p>&nbsp;&nbsp;&nbsp;&nbsp; * <code>public Color convert(ParsedValueImpl&lt;String,Color&gt; value, Font font)</code> * </p> * * @see ParsedValue * @see StyleableProperty * @since JavaFX 8.0 */ public class StyleConverter<F, T> { --- 61,87 ---- import java.util.Map; import java.util.WeakHashMap; /** ! * StyleConverter converts {@code ParsedValue&lt;F,T&gt;} ! * from type {@code F} to type {@code T}. The * {@link CssMetaData} API requires a {@code StyleConverter} which is used * when computing a value for the {@see StyleableProperty}. There are * a number of predefined converters which are accessible by the static * methods of this class. * ! * @{code F} is the type of the parsed value and {code T} is the converted type of * the ParsedValueImpl. For example, a converter from String to Color would * be declared * <p>&nbsp;&nbsp;&nbsp;&nbsp; * <code>public Color convert(ParsedValueImpl&lt;String,Color&gt; value, Font font)</code> * </p> * + * @param <F> the type of the parsed value + * @param <T> the converted type of the ParsedValueImpl + * * @see ParsedValue * @see StyleableProperty * @since JavaFX 8.0 */ public class StyleConverter<F, T> {
< prev index next >