Class NullableObjectStyleableKey<T>

Type Parameters:
T - the value type
All Implemented Interfaces:
ReadOnlyStyleableMapAccessor<T>, WritableStyleableMapAccessor<T>, Key<T>, MapAccessor<T>
Direct Known Subclasses:
NullableEnumStyleableKey, NullableIntegerStyleableKey, NulllableBooleanStyleableKey

public class NullableObjectStyleableKey<T> extends AbstractReadOnlyStyleableKey<T> implements WritableStyleableMapAccessor<T>
A simple nullable StyleableKey.
Author:
Werner Randelshofer
  • Constructor Details

    • NullableObjectStyleableKey

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

      public NullableObjectStyleableKey(@NonNull String name, @NonNull Type type, @NonNull org.jhotdraw8.base.converter.Converter<T> converter, @Nullable 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.
    • NullableObjectStyleableKey

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