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:
ReadOnlyStyleableMapAccessor<T>,WritableStyleableMapAccessor<T>,Key<T>,MapAccessor<T>,NonNullKey<T>,NonNullMapAccessor<T>
- Direct Known Subclasses:
NonNullBooleanStyleableKey,NonNullEnumStyleableKey
public class NonNullObjectStyleableKey<T>
extends AbstractReadOnlyStyleableKey<T>
implements WritableStyleableMapAccessor<T>, NonNullKey<T>
A simple non-nullable StyleableKey.
- Author:
- Werner Randelshofer
-
Field Summary
Fields inherited from class org.jhotdraw8.draw.key.AbstractReadOnlyStyleableKey
converterFields inherited from interface org.jhotdraw8.fxcollection.typesafekey.Key
serialVersionUIDFields inherited from interface org.jhotdraw8.fxcollection.typesafekey.NonNullMapAccessor
serialVersionUIDFields inherited from interface org.jhotdraw8.fxbase.styleable.ReadOnlyStyleableMapAccessor
serialVersionUIDFields inherited from interface org.jhotdraw8.fxbase.styleable.WritableStyleableMapAccessor
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescriptionNonNullObjectStyleableKey(String name, Type type, org.jhotdraw8.base.converter.Converter<T> converter, T defaultValue) Creates a new instance.NonNullObjectStyleableKey(String xmlName, String cssName, Type type, org.jhotdraw8.base.converter.Converter<T> converter, 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(String name, Type type, org.jhotdraw8.base.converter.Converter<T> converter, 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(String xmlName, String cssName, Type type, org.jhotdraw8.base.converter.Converter<T> converter, 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.
-