Class NonNullObjectStyleableKey<T>

Type Parameters:
T - the value type
All Implemented Interfaces:
Serializable, ReadOnlyStyleableMapAccessor<T>, WritableStyleableMapAccessor<@NonNull T>, Key<T>, MapAccessor<T>, NonNullKey<T>, NonNullMapAccessor<T>
Direct Known Subclasses:
NonNullBooleanStyleableKey, NonNullEnumStyleableKey

public class NonNullObjectStyleableKey<T> extends AbstractReadOnlyStyleableKey<T> implements WritableStyleableMapAccessor<@NonNull T>, NonNullKey<T>
A simple non-nullable StyleableKey.
Author:
Werner Randelshofer
See Also:
  • Constructor Details

    • NonNullObjectStyleableKey

      public NonNullObjectStyleableKey(@NonNull String name, @NonNull Type type, @NonNull org.jhotdraw8.base.converter.Converter<T> converter, @NonNull T defaultValue)
      Creates a new instance.
      Parameters:
      name - The name of the key
      type - The type of the value.
      converter - the CSS converter
      defaultValue - The default value.
    • NonNullObjectStyleableKey

      public NonNullObjectStyleableKey(@NonNull String xmlName, @NonNull String cssName, @NonNull Type type, @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.
      type - The type of the value.
      converter - the CSS converter
      defaultValue - The default value.