java.lang.Object
org.jhotdraw8.fxcollection.typesafekey.AbstractKey<T>
org.jhotdraw8.draw.key.AbstractReadOnlyStyleableKey<T>
org.jhotdraw8.draw.key.NullableObjectStyleableKey<T>
- Type Parameters:
T- the value type
- All Implemented Interfaces:
Serializable,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
- See Also:
-
Field Summary
Fields inherited from class org.jhotdraw8.draw.key.AbstractReadOnlyStyleableKey
converter -
Constructor Summary
ConstructorsConstructorDescriptionNullableObjectStyleableKey(@NonNull String name, @NonNull String cssName, @NonNull Type type, @NonNull org.jhotdraw8.base.converter.Converter<T> converter, @NonNull T defaultValue) Creates a new instance.NullableObjectStyleableKey(@NonNull String name, @NonNull Type type, @NonNull org.jhotdraw8.base.converter.Converter<T> converter) Creates a new instance with a null default value.NullableObjectStyleableKey(@NonNull String name, @NonNull Type type, @NonNull org.jhotdraw8.base.converter.Converter<T> converter, @Nullable T defaultValue) Creates a new instance. -
Method Summary
Methods inherited from class org.jhotdraw8.draw.key.AbstractReadOnlyStyleableKey
getCssConverter, getCssNameMethods 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
getCssConverter, getCssName, getCssNamespaceMethods inherited from interface org.jhotdraw8.fxbase.styleable.WritableStyleableMapAccessor
getExamples
-
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 keytype- 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 keytype- The type of the value.converter- the CSS converterdefaultValue- 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 converterdefaultValue- The default value.
-