java.lang.Object
org.jhotdraw8.css.converter.AbstractCssConverter<javafx.css.PseudoClass>
org.jhotdraw8.css.converter.PseudoClassCssConverter
- All Implemented Interfaces:
Converter<javafx.css.PseudoClass>,CssConverter<javafx.css.PseudoClass>
WordSetConverter converts an ImmutableObservableSet of Strings into a
String.
The word list is actually a "set of space separated tokens", as specified in HTML 5 and in XML Schema Part 2.
The word list converter coalesces duplicate entries if they have the same Unicode NFD form. The tokens are sorted using their Unicode NFD form.
References:
- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringGets a help text.javafx.css.PseudoClassparseNonNull(CssTokenizer tt, @Nullable IdResolver idResolver) Parses from the given tokenizer and moves the tokenizer to the next token past the value.protected <TT extends javafx.css.PseudoClass>
voidproduceTokensNonNull(TT value, @Nullable IdSupplier idSupplier, Consumer<CssToken> out) Methods inherited from class org.jhotdraw8.css.converter.AbstractCssConverter
getDefaultValue, isNullable, parse, produceTokensMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.base.converter.Converter
fromString, fromString, fromStringNonNull, fromStringNonNull, fromStringNonNull, fromStringNonNull, needsIdResolver, toString, toStringMethods inherited from interface org.jhotdraw8.css.converter.CssConverter
fromString, fromString, getExamples, toString, toString, toString, toTokens
-
Constructor Details
-
PseudoClassCssConverter
public PseudoClassCssConverter(boolean nullable)
-
-
Method Details
-
parseNonNull
public javafx.css.PseudoClass parseNonNull(CssTokenizer tt, @Nullable IdResolver idResolver) throws ParseException, IOException Description copied from interface:CssConverterParses from the given tokenizer and moves the tokenizer to the next token past the value.- Specified by:
parseNonNullin interfaceCssConverter<javafx.css.PseudoClass>- Specified by:
parseNonNullin classAbstractCssConverter<javafx.css.PseudoClass>- Parameters:
tt- tokenizer positioned on the tokenidResolver- the id factory- Returns:
- the parsed value
- Throws:
ParseException- on parse exceptionIOException- on io exception
-
produceTokensNonNull
protected <TT extends javafx.css.PseudoClass> void produceTokensNonNull(TT value, @Nullable IdSupplier idSupplier, Consumer<CssToken> out) - Specified by:
produceTokensNonNullin classAbstractCssConverter<javafx.css.PseudoClass>
-
getHelpText
Description copied from interface:CssConverterGets a help text.- Returns:
- a help text.
-