de.enough.polish.preprocess.css.attributes
Class ColumnsWidthCssAttribute

java.lang.Object
  extended by de.enough.polish.preprocess.css.CssAttribute
      extended by de.enough.polish.preprocess.css.attributes.ColumnsWidthCssAttribute
All Implemented Interfaces:
Comparable

public class ColumnsWidthCssAttribute
extends CssAttribute

The columns-width CSS attribute is a specialized one.

Copyright Enough Software 2007

 history
        Apr 15, 2007 - rob creation
 

Author:
Robert Virkus, j2mepolish@enough.de

Field Summary
 
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
ColumnsWidthCssAttribute()
          Creates a new instance
 
Method Summary
 String getValue(String value, Environment environment)
          Checks and transforms the given CSS value for this attribute.
 Object instantiateValue(String sourceCode)
          Instantiates the referenced value.
 
Methods inherited from class de.enough.polish.preprocess.css.CssAttribute
add, appliesTo, compareTo, createMapping, generateAnimationSourceCode, generateAnimationSourceCode, generateAnimationSourceCodeStart, getAllowedValues, getApplicableMappings, getAppliesTo, getDefaultValue, getDeprecatedMessage, getDescription, getGroup, getId, getMapping, getMappingByTo, getMappings, getName, getShell, getSince, getType, getValuePosition, hasFixValues, instantiate, instantiateBoolean, instantiateByte, instantiateChar, instantiateDefault, instantiateDouble, instantiateFloat, instantiateInt, instantiateLong, instantiateShort, isBaseAttribute, isDefault, isDeprecated, isHidden, isImplicit, loadClass, parseAndInstantiateValue, resolveField, setDefinition, setId, setImplicitDefinition, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnsWidthCssAttribute

public ColumnsWidthCssAttribute()
Creates a new instance

Method Detail

getValue

public String getValue(String value,
                       Environment environment)
Description copied from class: CssAttribute
Checks and transforms the given CSS value for this attribute.

Overrides:
getValue in class CssAttribute
Parameters:
value - the attribute value
environment - the environment
Returns:
the transformed value or the same value if no transformation is required.

instantiateValue

public Object instantiateValue(String sourceCode)
Description copied from class: CssAttribute
Instantiates the referenced value.

Overrides:
instantiateValue in class CssAttribute
Parameters:
sourceCode - the transformed value of this attribute
Returns:
the instantiated value (value as object instead of source code)