V is the type of the parsed
value, T is the StyleableProperty type of the converted value.
Instances of ParsedValue are created by the CSS parser. For example,
the parser creates a ParsedValue<String,Color> when it parses a
web Color.
A ParsedValue is meaningful to the code that calculates actual values from
parsed CSS values. Elsewhere the value returned by
getValue() is likely to be obscure, abstruse and perplexing.
| Modifier and Type | Field and Description |
|---|---|
| protected final StyleConverter | converter
The |
| protected final V | value
The CSS property value as created by the parser. |
| Access | Constructor and Description |
|---|---|
| protected | ParsedValue(V
the value to be converted value, StyleConverter<V, T> the converter converter)Create an instance of ParsedValue where the value type V is converted to the target type T using the given converter. |
| Modifier and Type | Method and Description |
|---|---|
| public T | |
| public final StyleConverter | Returns: TheStyleConverter which converts the parsed value to
the type of the StyleableProperty. May return null.A |
| public final V | Returns: the CSS property valueGets the CSS property value as created by the parser, which may be null or otherwise incomprehensible. |
| public boolean | Returns: true if this value contains a value that needs to be looked up, otherwise falseIf value is itself a ParsedValue or sequence of values, and should any of those values need to be looked up, then this flag is set. |
| public boolean | Returns: true if value references another property, otherwise falseIf value references another property, then the real value needs to be looked up. |
| converter | back to summary |
|---|---|
| protected final StyleConverter<V, T> converter The | |
| value | back to summary |
|---|---|
| protected final V value The CSS property value as created by the parser. | |
| ParsedValue | back to summary |
|---|---|
| protected ParsedValue(V value, StyleConverter<V, T> converter) Create an instance of ParsedValue where the value type V is converted to
the target type T using the given converter.
If
| |
| convert | back to summary |
|---|---|
| public T convert(Font font) Convenience method for calling
| |
| getConverter | back to summary |
|---|---|
| public final StyleConverter A
| |
| getValue | back to summary |
|---|---|
| public final V getValue() Gets the CSS property value as created by the parser, which may be null or otherwise incomprehensible.
| |
| isContainsLookups | back to summary |
|---|---|
| public boolean isContainsLookups() If value is itself a ParsedValue or sequence of values, and should any of those values need to be looked up, then this flag is set. This does not mean that this particular value needs to be looked up, but that this value contains a value that needs to be looked up.
| |
| isLookup | back to summary |
|---|---|
| public boolean isLookup() If value references another property, then the real value needs to be looked up.
| |