Module org.jhotdraw8.draw
Package org.jhotdraw8.draw.css.converter
Class DefaultableValueCssConverter<T>
java.lang.Object
org.jhotdraw8.draw.css.converter.DefaultableValueCssConverter<T>
- All Implemented Interfaces:
org.jhotdraw8.base.converter.Converter<CssDefaultableValue<T>>,CssConverter<CssDefaultableValue<T>>
public class DefaultableValueCssConverter<T>
extends Object
implements CssConverter<CssDefaultableValue<T>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanparse(@NonNull CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) <TT extends CssDefaultableValue<T>>
voidproduceTokens(@Nullable TT value, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, @NonNull Consumer<CssToken> out) Methods 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, needsIdResolver, toString, toStringMethods inherited from interface org.jhotdraw8.css.converter.CssConverter
fromString, fromString, getExamples, parseNonNull, toString, toString, toString, toTokens
-
Constructor Details
-
DefaultableValueCssConverter
-
-
Method Details
-
parse
public @Nullable CssDefaultableValue<T> parse(@NonNull CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) throws ParseException, IOException - Specified by:
parsein interfaceCssConverter<T>- Throws:
ParseExceptionIOException
-
produceTokens
public <TT extends CssDefaultableValue<T>> void produceTokens(@Nullable TT value, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, @NonNull Consumer<CssToken> out) throws IOException - Specified by:
produceTokensin interfaceCssConverter<T>- Throws:
IOException
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceorg.jhotdraw8.base.converter.Converter<T>
-
getHelpText
- Specified by:
getHelpTextin interfaceorg.jhotdraw8.base.converter.Converter<T>- Specified by:
getHelpTextin interfaceCssConverter<T>
-
isNullable
public boolean isNullable()- Specified by:
isNullablein interfaceCssConverter<T>
-