java.lang.Object
org.jhotdraw8.fxcollection.typesafekey.AbstractKey<T>
org.jhotdraw8.draw.key.AbstractReadOnlyStyleableKey<T>
- Type Parameters:
T- the value type
- All Implemented Interfaces:
Serializable,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
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractReadOnlyStyleableKey(@NonNull String name, @NonNull String cssName, @NonNull Type clazz, @NonNull org.jhotdraw8.base.converter.Converter<T> converter, @Nullable T defaultValue) Creates a new key.AbstractReadOnlyStyleableKey(@NonNull String key, @NonNull Type clazz, @NonNull 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(@NonNull String key, @NonNull Type clazz, @NonNull 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. -
Method Summary
Modifier and TypeMethodDescriptionMethods 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(@NonNull String key, @NonNull Type clazz, @NonNull 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(@NonNull String key, @NonNull Type clazz, @NonNull 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(@NonNull String name, @NonNull String cssName, @NonNull Type clazz, @NonNull 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>
-