Module org.jhotdraw8.draw
Package org.jhotdraw8.draw.key
Class NonNullEnumStyleableKey<T extends Enum<T>>
java.lang.Object
org.jhotdraw8.fxcollection.typesafekey.AbstractKey<T>
org.jhotdraw8.draw.key.AbstractReadOnlyStyleableKey<T>
org.jhotdraw8.draw.key.NonNullObjectStyleableKey<T>
org.jhotdraw8.draw.key.NonNullEnumStyleableKey<T>
- Type Parameters:
T- the enum type
- All Implemented Interfaces:
ReadOnlyStyleableMapAccessor<T>,WritableStyleableMapAccessor<T>,Key<T>,MapAccessor<T>,NonNullKey<T>,NonNullMapAccessor<T>
public class NonNullEnumStyleableKey<T extends Enum<T>>
extends NonNullObjectStyleableKey<T>
implements WritableStyleableMapAccessor<T>, NonNullKey<T>
Convenience class for creating a
Key for an enum type.- Author:
- Werner Randelshofer
-
Field Summary
Fields inherited from class org.jhotdraw8.draw.key.AbstractReadOnlyStyleableKey
converterFields inherited from interface org.jhotdraw8.fxcollection.typesafekey.Key
serialVersionUIDFields inherited from interface org.jhotdraw8.fxcollection.typesafekey.NonNullMapAccessor
serialVersionUIDFields inherited from interface org.jhotdraw8.fxbase.styleable.ReadOnlyStyleableMapAccessor
serialVersionUIDFields inherited from interface org.jhotdraw8.fxbase.styleable.WritableStyleableMapAccessor
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance with the specified name, enum class, mask and default value.NonNullEnumStyleableKey(@NonNull String xmlName, @NonNull String cssName, @NonNull Class<T> clazz, @NonNull T defaultValue) Creates a new instance withKebabCaseEnumCssConverter.NonNullEnumStyleableKey(@NonNull String xmlName, @NonNull String cssName, @NonNull Class<T> clazz, @NonNull org.jhotdraw8.base.converter.Converter<T> converter, @NonNull T defaultValue) Creates a new instance. -
Method Summary
Methods inherited from class org.jhotdraw8.draw.key.AbstractReadOnlyStyleableKey
getCssConverter, getCssNameMethods inherited from class org.jhotdraw8.fxcollection.typesafekey.AbstractKey
getDefaultValue, getName, getValueType, isNullable, isTransient, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jhotdraw8.fxcollection.typesafekey.Key
cast, containsKey, getValue, getValueProperty, isAssignable, isDefault, isNullable, propertyAt, put, put, putValue, readOnlyPropertyAt, remove, remove, valueAtMethods inherited from interface org.jhotdraw8.fxcollection.typesafekey.MapAccessor
getDefaultValue, getName, getRawValueType, getValueType, isTransient, setMethods inherited from interface org.jhotdraw8.fxcollection.typesafekey.NonNullKey
get, getMethods inherited from interface org.jhotdraw8.fxcollection.typesafekey.NonNullMapAccessor
getDefaultValueNonNull, getNonNull, getNonNull, putNonNullMethods inherited from interface org.jhotdraw8.fxbase.styleable.ReadOnlyStyleableMapAccessor
getCssConverter, getCssName, getCssNamespaceMethods inherited from interface org.jhotdraw8.fxbase.styleable.WritableStyleableMapAccessor
getExamples
-
Constructor Details
-
NonNullEnumStyleableKey
public NonNullEnumStyleableKey(@NonNull String xmlName, @NonNull Class<T> clazz, @NonNull T defaultValue) Creates a new instance with the specified name, enum class, mask and default value.- Parameters:
xmlName- The XML name of the key.clazz- The enum class.defaultValue- The default value.
-
NonNullEnumStyleableKey
public NonNullEnumStyleableKey(@NonNull String xmlName, @NonNull String cssName, @NonNull Class<T> clazz, @NonNull T defaultValue) Creates a new instance withKebabCaseEnumCssConverter.- Parameters:
xmlName- The XML name of the key.cssName- The CSS name of the key.clazz- The enum class.defaultValue- The default value.
-
NonNullEnumStyleableKey
public NonNullEnumStyleableKey(@NonNull String xmlName, @NonNull String cssName, @NonNull Class<T> clazz, @NonNull org.jhotdraw8.base.converter.Converter<T> converter, @NonNull T defaultValue) Creates a new instance.- Parameters:
xmlName- The XML name of the key.cssName- The CSS name of the key.clazz- The enum class.converter- The CSS converterdefaultValue- The default value.
-