T
- The CSS property typepublic class CssMetadata<T> extends MetadataBase<T,org.vectomatic.dom.svg.impl.SVGElement>
Modifier and Type | Field and Description |
---|---|
protected IConverter<String,T> |
converter |
protected T |
defaultValue |
category, description, factory, fieldFactory, propertyName, validator
Constructor and Description |
---|
CssMetadata(String propertyName,
String description,
IFieldFactory fieldFactory,
IConverter<String,T> converter,
T defaultValue,
IFactoryInstantiator<?> factory,
IValidator<T,org.vectomatic.dom.svg.impl.SVGElement> validator) |
Modifier and Type | Method and Description |
---|---|
T |
get(org.vectomatic.dom.svg.impl.SVGElement element)
Returns the value of this property for
the specified model object.
|
T |
getDefaultValue() |
T |
remove(org.vectomatic.dom.svg.impl.SVGElement element)
Removes the property from the the specified
model object and returns its former value.
|
T |
set(org.vectomatic.dom.svg.impl.SVGElement element,
T value)
Sets the value of this property for
the specified model object and returns its former value.
|
String |
toString() |
getCategory, getCommandFactory, getDescription, getFieldFactory, getName, validate
protected IConverter<String,T> converter
protected T defaultValue
public CssMetadata(String propertyName, String description, IFieldFactory fieldFactory, IConverter<String,T> converter, T defaultValue, IFactoryInstantiator<?> factory, IValidator<T,org.vectomatic.dom.svg.impl.SVGElement> validator)
public T get(org.vectomatic.dom.svg.impl.SVGElement element)
IMetadata
element
- The model object.public T set(org.vectomatic.dom.svg.impl.SVGElement element, T value)
IMetadata
element
- The model object.value
- The value of this property for the specified model object.public T remove(org.vectomatic.dom.svg.impl.SVGElement element)
IMetadata
element
- The model object.public T getDefaultValue()
Copyright © 2018. All Rights Reserved.