Class NullableEnumStyleableKey<T extends Enum<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:
  • Constructor Details

    • NullableEnumStyleableKey

      public NullableEnumStyleableKey(String name, Class<T> clazz)
      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

      public NullableEnumStyleableKey(String xmlName, Class<T> clazz, @Nullable T defaultValue)
      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 converter
      defaultValue - The default value.