java.lang.Object
org.jhotdraw8.fxcollection.typesafekey.AbstractKey<T>
org.jhotdraw8.draw.key.AbstractStyleableKey<T>
- Type Parameters:
T- the value type
- All Implemented Interfaces:
ReadOnlyStyleableMapAccessor<T>,Key<T>,MapAccessor<T>
- Direct Known Subclasses:
CssDimension2DStyleableKey,CssPoint2DStyleableKey,CssSizeStyleableKey,DefaultableStyleableKey,DoubleListStyleableKey,DoubleStyleableKey,EffectStyleableKey,InsetsStyleableKey,NullableBezierPathStyleableKey,NullableBooleanStyleableKey,NullableCssColorStyleableKey,NullableCssSizeStyleableKey,NullableDoubleStyleableKey,NullableFXPathElementsStyleableKey,NullableFXPathStyleableKey,NullablePaintableStyleableKey,NullablePathMetricsStyleableKey,NullablePoint2DStyleableKey,NullableStringStyleableKey,NullableUriStyleableKey,Point2DListStyleableKey,Point2DStyleableKey,Rectangle2DStyleableKey,RegexStyleableKey,StringOrIdentStyleableKey,StringReadOnlyStyleableKey,StringStyleableKey,TransformListStyleableKey
public abstract class AbstractStyleableKey<T>
extends AbstractKey<T>
implements ReadOnlyStyleableMapAccessor<T>
AbstractStyleableKey.
- Author:
- Werner Randelshofer
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractStyleableKey(@Nullable String namespace, String name, Type type, boolean isNullable, @Nullable T defaultValue) Creates a new instance with the specified name, type token class, default value, and allowing or disallowing null values.AbstractStyleableKey(@Nullable String namespace, String name, String cssName, Type type, boolean isNullable, @Nullable T defaultValue) Creates a new instance with the specified name, type token class, default value, and allowing or disallowing null values.AbstractStyleableKey(String key, Type type, @Nullable T defaultValue) Creates a new instance with the specified name, type token class, default value. -
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
getCssConverter
-
Constructor Details
-
AbstractStyleableKey
Creates a new instance with the specified name, type token class, default value.- Parameters:
key- The name of the name.type- The type of the value.defaultValue- The default value.
-
AbstractStyleableKey
public AbstractStyleableKey(@Nullable String namespace, String name, Type type, boolean isNullable, @Nullable T defaultValue) Creates a new instance with the specified name, type token class, default value, and allowing or disallowing null values.- Parameters:
namespace- The namespacename- The name of the key.type- The type of the value.isNullable- Whether the value may be set to nulldefaultValue- The default value.
-
AbstractStyleableKey
public AbstractStyleableKey(@Nullable String namespace, String name, String cssName, Type type, boolean isNullable, @Nullable T defaultValue) Creates a new instance with the specified name, type token class, default value, and allowing or disallowing null values.- Parameters:
namespace- The namespacename- The name of the key.cssName- The name of the as seen by CSS.type- The type of the value.isNullable- Whether the value may be set to nulldefaultValue- The default value.
-
-
Method Details
-
getCssName
- Specified by:
getCssNamein interfaceReadOnlyStyleableMapAccessor<T>
-
getCssNamespace
- Specified by:
getCssNamespacein interfaceReadOnlyStyleableMapAccessor<T>
-