java.lang.Object
org.jhotdraw8.css.converter.AbstractCssConverter<Boolean>
org.jhotdraw8.css.converter.BooleanCssConverter
- All Implemented Interfaces:
Converter<Boolean>,CssConverter<Boolean>
Converts a
Boolean into the CSS String representation.- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringGets a help text.parseNonNull(CssTokenizer tt, @Nullable IdResolver idResolver) Parses from the given tokenizer and moves the tokenizer to the next token past the value.<TT extends Boolean>
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
-
BooleanCssConverter
public BooleanCssConverter(boolean nullable)
-
-
Method Details
-
parseNonNull
public Boolean 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<Boolean>- Specified by:
parseNonNullin classAbstractCssConverter<Boolean>- Parameters:
tt- tokenizer positioned on the tokenidResolver- the id factory- Returns:
- the parsed value
- Throws:
ParseException- on parse exceptionIOException- on io exception
-
produceTokensNonNull
public <TT extends Boolean> void produceTokensNonNull(TT value, @Nullable IdSupplier idSupplier, Consumer<CssToken> out) - Specified by:
produceTokensNonNullin classAbstractCssConverter<Boolean>
-
getHelpText
Description copied from interface:CssConverterGets a help text.- Returns:
- a help text.
-