|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.preprocess.css.CssAttribute
de.enough.polish.preprocess.css.attributes.WrappedCssAttribute
public class WrappedCssAttribute
Wraps an existing CssAttribute under a new name.
Copyright Enough Software 2007
history
Nov 20, 2007 - rob creation
| Field Summary | |
|---|---|
protected CssAttribute |
parent
|
| Fields inherited from class de.enough.polish.preprocess.css.CssAttribute |
|---|
allowedValues, allowsCombinations, ANIMATION_PACKAGE, appliesTo, appliesToMap, defaultValue, description, group, id, isBaseAttribute, isCaseSensitive, mappingsByName, name, requiresMapping, shell, since, type |
| Constructor Summary | |
|---|---|
WrappedCssAttribute()
Creates an empty css attribute |
|
WrappedCssAttribute(CssAttribute parent,
org.jdom.Element definition)
|
|
| Method Summary | |
|---|---|
void |
add(CssAttribute extension)
Adds the mappings of the given capability to this one. |
int |
compareTo(Object o)
|
String |
generateAnimationSourceCode(CssAnimationSetting cssAnimation,
Style style,
Environment environment)
Generates source code for creating a CssAnimation |
String[] |
getAllowedValues()
|
CssMapping[] |
getApplicableMappings(Class targetClass)
Retrieves the mappings that are appliable to a given class. |
String |
getDefaultValue()
|
String |
getDescription()
|
CssMapping |
getMapping(String fromName)
|
CssMapping |
getMappingByTo(String toName)
Retrieves mapping by its name. |
CssMapping[] |
getMappings()
Retrieves all mappings for this attribute. |
String |
getValue(String value,
Environment environment)
Checks and transforms the given CSS value for this attribute. |
int |
getValuePosition(String value)
Retrieves the position of the given value in list of allowed values. |
boolean |
hasFixValues()
|
Object |
instantiateDefault(Environment environment)
Retrieves the default value for the attribute. |
Object |
instantiateValue(String sourceCode)
Instantiates the referenced value. |
boolean |
isDefault(String value)
Determines whether the given value is the same as the default value of this attribute. |
Object |
parseAndInstantiateValue(String valueStr,
Environment environment)
Parses and instantiates a value in the attribute. |
void |
setDefinition(org.jdom.Element definition)
Creates a new CSS-attribute |
| Methods inherited from class de.enough.polish.preprocess.css.CssAttribute |
|---|
appliesTo, createMapping, generateAnimationSourceCode, generateAnimationSourceCodeStart, getAppliesTo, getDeprecatedMessage, getGroup, getId, getName, getShell, getSince, getType, instantiate, instantiateBoolean, instantiateByte, instantiateChar, instantiateDouble, instantiateFloat, instantiateInt, instantiateLong, instantiateShort, isBaseAttribute, isDeprecated, isHidden, isImplicit, loadClass, resolveField, setId, setImplicitDefinition, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CssAttribute parent
| Constructor Detail |
|---|
public WrappedCssAttribute()
public WrappedCssAttribute(CssAttribute parent,
org.jdom.Element definition)
parent - definition - | Method Detail |
|---|
public void add(CssAttribute extension)
CssAttribute
add in class CssAttributeextension - the attribute containing further mappingspublic int compareTo(Object o)
compareTo in interface ComparablecompareTo in class CssAttributepublic String[] getAllowedValues()
getAllowedValues in class CssAttributepublic CssMapping[] getApplicableMappings(Class targetClass)
CssAttribute
getApplicableMappings in class CssAttributetargetClass - the class to return mappings for
public String getDefaultValue()
getDefaultValue in class CssAttributepublic String getDescription()
getDescription in class CssAttributepublic CssMapping getMapping(String fromName)
getMapping in class CssAttributepublic CssMapping getMappingByTo(String toName)
CssAttribute
getMappingByTo in class CssAttributetoName - the name to which the mapping is usally converted, e.g. a class name
public CssMapping[] getMappings()
CssAttribute
getMappings in class CssAttribute
public String getValue(String value,
Environment environment)
CssAttribute
getValue in class CssAttributevalue - the attribute valueenvironment - the environment
public int getValuePosition(String value)
CssAttribute
getValuePosition in class CssAttributevalue - the value
CssAttribute.hasFixValues()public boolean hasFixValues()
hasFixValues in class CssAttributepublic Object instantiateDefault(Environment environment)
CssAttribute
instantiateDefault in class CssAttributeenvironment - the environment
public Object instantiateValue(String sourceCode)
CssAttribute
instantiateValue in class CssAttributesourceCode - the transformed value of this attribute
public boolean isDefault(String value)
CssAttribute
isDefault in class CssAttributevalue - the value defined by the user
public Object parseAndInstantiateValue(String valueStr,
Environment environment)
CssAttribute
parseAndInstantiateValue in class CssAttributevalueStr - the value string to parseenvironment - the enviroment
public void setDefinition(org.jdom.Element definition)
CssAttribute
setDefinition in class CssAttributedefinition - the XML definition of this attribute.
public String generateAnimationSourceCode(CssAnimationSetting cssAnimation,
Style style,
Environment environment)
CssAttribute
generateAnimationSourceCode in class CssAttributecssAnimation - the settings of the animationstyle - the parent styleenvironment - the environment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||