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 Summary
FieldsFields inherited from interface org.jhotdraw8.fxcollection.typesafekey.Key
serialVersionUIDFields inherited from interface org.jhotdraw8.fxbase.styleable.ReadOnlyStyleableMapAccessor
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescriptionAbstractReadOnlyStyleableKey(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.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.AbstractReadOnlyStyleableKey(String name, String cssName, Type clazz, org.jhotdraw8.base.converter.Converter<T> converter, @Nullable T defaultValue) Creates a new key. -
Method Summary
Methods 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
getCssNamespace
-
Field Details
-
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 converterdefaultValue- 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 keycssName- the CSS name of the keyclazz- the type of the valueconverter- the CSS converter for the valuedefaultValue- the default value
-
-
Method Details
-
getCssConverter
- Specified by:
getCssConverterin interfaceReadOnlyStyleableMapAccessor<T>
-
getCssName
- Specified by:
getCssNamein interfaceReadOnlyStyleableMapAccessor<T>
-