java.lang.Object
org.jhotdraw8.fxcollection.typesafekey.AbstractKey<T>
org.jhotdraw8.draw.key.AbstractReadOnlyStyleableKey<T>
org.jhotdraw8.draw.key.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:
-
Field Summary
Fields inherited from class org.jhotdraw8.draw.key.AbstractReadOnlyStyleableKey
converter -
Constructor Summary
ConstructorsConstructorDescriptionNonNullObjectStyleableKey(@NonNull String xmlName, @NonNull String cssName, @NonNull Type type, @NonNull org.jhotdraw8.base.converter.Converter<T> converter, @NonNull T defaultValue) Creates a new instance.NonNullObjectStyleableKey(@NonNull String name, @NonNull Type type, @NonNull org.jhotdraw8.base.converter.Converter<T> converter, @NonNull 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, getValue, getValueProperty, isAssignable, isDefault, isNullable, 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.fxcollection.typesafekey.NonNullKey
get, getMethods inherited from interface org.jhotdraw8.fxcollection.typesafekey.NonNullMapAccessor
getDefaultValueNonNull, getNonNull, getNonNull, putNonNullMethods inherited from interface org.jhotdraw8.fxbase.styleable.ReadOnlyStyleableMapAccessor
getCssConverter, getCssName, getCssNamespaceMethods inherited from interface org.jhotdraw8.fxbase.styleable.WritableStyleableMapAccessor
getExamples
-
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 keytype- The type of the value.converter- the CSS converterdefaultValue- 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 converterdefaultValue- The default value.
-