Module org.jhotdraw8.draw
Package org.jhotdraw8.draw.key
Class NullableEnumStyleableKey<T extends Enum<T>>
java.lang.Object
org.jhotdraw8.fxcollection.typesafekey.AbstractKey<T>
org.jhotdraw8.draw.key.AbstractReadOnlyStyleableKey<T>
org.jhotdraw8.draw.key.NullableObjectStyleableKey<T>
org.jhotdraw8.draw.key.NullableEnumStyleableKey<T>
- Type Parameters:
T- the value type
- All Implemented Interfaces:
Serializable,ReadOnlyStyleableMapAccessor<T>,WritableStyleableMapAccessor<T>,Key<T>,MapAccessor<T>
public class NullableEnumStyleableKey<T extends Enum<T>>
extends NullableObjectStyleableKey<T>
implements WritableStyleableMapAccessor<T>
NullableEnumStyleableKey.
- Author:
- Werner Randelshofer
- See Also:
-
Field Summary
Fields inherited from class org.jhotdraw8.draw.key.AbstractReadOnlyStyleableKey
converter -
Constructor Summary
ConstructorsConstructorDescriptionNullableEnumStyleableKey(@NonNull String xmlName, @NonNull String cssName, @NonNull Class<T> clazz, @NonNull org.jhotdraw8.base.converter.Converter<T> converter, @Nullable T defaultValue) Creates a new instance with the specified name, enum class, mask and default value.NullableEnumStyleableKey(String name, Class<T> clazz) Creates a new instance with the specified name, enum class, mask and with null as the default value.Creates a new instance with the specified name, enum class, mask and default value. -
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, get, get, getValue, getValueProperty, isAssignable, isDefault, 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.fxbase.styleable.ReadOnlyStyleableMapAccessor
getCssConverter, getCssName, getCssNamespaceMethods inherited from interface org.jhotdraw8.fxbase.styleable.WritableStyleableMapAccessor
getExamples
-
Constructor Details
-
NullableEnumStyleableKey
Creates a new instance with the specified name, enum class, mask and with null as the default value.- Parameters:
name- The name of the key.clazz- The enum class.
-
NullableEnumStyleableKey
Creates a new instance with the specified name, enum class, mask and default value.- Parameters:
xmlName- The name of the key.clazz- The enum class.defaultValue- The default value.
-
NullableEnumStyleableKey
public NullableEnumStyleableKey(@NonNull String xmlName, @NonNull String cssName, @NonNull Class<T> clazz, @NonNull org.jhotdraw8.base.converter.Converter<T> converter, @Nullable T defaultValue) Creates a new instance with the specified name, enum class, mask and default value.- 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.
-