java.lang.Object
org.jhotdraw8.draw.key.AbstractStyleableMapAccessor<T>
- Type Parameters:
T- the value type
- All Implemented Interfaces:
Serializable,ReadOnlyStyleableMapAccessor<T>,WritableStyleableMapAccessor<T>,CompositeMapAccessor<T>,MapAccessor<T>
- Direct Known Subclasses:
BoundingBoxStyleableMapAccessor,CssInsetsStyleableMapAccessor,CssPoint2DStyleableMapAccessor,CssRectangle2DStyleableMapAccessor,FontStyleableMapAccessor,InsetsStyleableMapAccessor,NullableCssRectangle2DStyleableMapAccessor,PaperSizeStyleableMapAccessor,Point2DStyleableMapAccessor,Point3DStyleableMapAccessor,Rectangle2DStyleableMapAccessor,Scale2DStyleableMapAccessor,Scale3DStyleableMapAccessor,StrokeStyleableMapAccessor,SymmetricCssPoint2DStyleableMapAccessor
public abstract class AbstractStyleableMapAccessor<T>
extends Object
implements WritableStyleableMapAccessor<T>, CompositeMapAccessor<T>
AbstractStyleableMapAccessor.
- Author:
- Werner Randelshofer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractStyleableMapAccessor(@NonNull String name, @NonNull Class<?> type, @Nullable Class<?>[] typeParameters, @NonNull MapAccessor<?>[] subAccessors, @Nullable T defaultValue) Creates a new instance with the specified name, type token class, default value, and allowing or disallowing null values.AbstractStyleableMapAccessor(@NonNull String name, @NonNull Class<T> type, @NonNull MapAccessor<?>[] subAccessors, T defaultValue) Creates a new instance with the specified name, type token class, default value, and allowing or disallowing null values. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jhotdraw8.fxcollection.typesafekey.MapAccessor
get, get, getRawValueType, put, remove, remove, setMethods inherited from interface org.jhotdraw8.fxbase.styleable.ReadOnlyStyleableMapAccessor
getCssConverter, getCssNamespaceMethods inherited from interface org.jhotdraw8.fxbase.styleable.WritableStyleableMapAccessor
getExamples
-
Constructor Details
-
AbstractStyleableMapAccessor
public AbstractStyleableMapAccessor(@NonNull String name, @NonNull Class<T> type, @NonNull MapAccessor<?>[] subAccessors, T defaultValue) Creates a new instance with the specified name, type token class, default value, and allowing or disallowing null values.- Parameters:
name- The name of the key.type- The type of the value.subAccessors- sub accessors which are used by this accessordefaultValue- The default value.
-
AbstractStyleableMapAccessor
public AbstractStyleableMapAccessor(@NonNull String name, @NonNull Class<?> type, @Nullable Class<?>[] typeParameters, @NonNull MapAccessor<?>[] subAccessors, @Nullable T defaultValue) Creates a new instance with the specified name, type token class, default value, and allowing or disallowing null values.- Parameters:
name- The name of the key.type- The type of the value.typeParameters- The type parameters of the class. Specify "" if no type parameters are given. Otherwise, specify them in arrow brackets.subAccessors- sub accessors which are used by this accessordefaultValue- The default value.
-
-
Method Details
-
containsKey
- Specified by:
containsKeyin interfaceCompositeMapAccessor<T>- Specified by:
containsKeyin interfaceMapAccessor<T>
-
getName
Returns the name string.- Specified by:
getNamein interfaceMapAccessor<T>- Returns:
- name string.
-
getValueType
- Specified by:
getValueTypein interfaceMapAccessor<T>
-
getDefaultValue
Returns the default value of the attribute.- Specified by:
getDefaultValuein interfaceMapAccessor<T>- Returns:
- the default value.
-
put
- Specified by:
putin interfaceMapAccessor<T>
-
toString
Returns the name string. -
getSubAccessors
- Specified by:
getSubAccessorsin interfaceCompositeMapAccessor<T>
-
isTransient
public boolean isTransient()- Specified by:
isTransientin interfaceMapAccessor<T>
-
getCssName
- Specified by:
getCssNamein interfaceReadOnlyStyleableMapAccessor<T>
-