Class AbstractReadOnlyStyleableKey<T>

java.lang.Object
org.jhotdraw8.fxcollection.typesafekey.AbstractKey<T>
org.jhotdraw8.draw.key.AbstractReadOnlyStyleableKey<T>
Type Parameters:
T - the value type
All Implemented Interfaces:
ReadOnlyStyleableMapAccessor<T>, Key<T>, MapAccessor<T>
Direct Known Subclasses:
NonNullListStyleableKey, NonNullObjectStyleableKey, NonNullSetStyleableKey, NullableListStyleableKey, NullableObjectStyleableKey, NullableSetStyleableKey

public abstract class AbstractReadOnlyStyleableKey<T> extends AbstractKey<T> implements ReadOnlyStyleableMapAccessor<T>
AbstractReadOnlyStyleableKey.
Author:
Werner Randelshofer
  • Field Details

    • converter

      protected final org.jhotdraw8.base.converter.Converter<T> converter
  • Constructor Details

    • AbstractReadOnlyStyleableKey

      public AbstractReadOnlyStyleableKey(String key, Type clazz, org.jhotdraw8.base.converter.Converter<T> converter)
      Creates a new instance with the specified name, type token class, default value null, and allowing null values.
      Parameters:
      key - The name of the name.
      clazz - The type of the value.
      converter - the converter
    • AbstractReadOnlyStyleableKey

      public AbstractReadOnlyStyleableKey(String key, Type clazz, org.jhotdraw8.base.converter.Converter<T> converter, @Nullable T defaultValue)
      Creates a new instance with the specified name, type token class, default value, and allowing or disallowing null values.
      Parameters:
      key - The name of the name.
      clazz - The type of the value.
      converter - the converter
      defaultValue - The default value.
    • AbstractReadOnlyStyleableKey

      public AbstractReadOnlyStyleableKey(String name, String cssName, Type clazz, org.jhotdraw8.base.converter.Converter<T> converter, @Nullable T defaultValue)
      Creates a new key.
      Parameters:
      name - the model name of the key
      cssName - the CSS name of the key
      clazz - the type of the value
      converter - the CSS converter for the value
      defaultValue - the default value
  • Method Details