info.informatica.doc.style.css.property
Class AbstractCSSValue

java.lang.Object
  extended by info.informatica.doc.style.css.property.AbstractCSSValue
All Implemented Interfaces:
org.w3c.dom.css.CSSValue
Direct Known Subclasses:
AbstractCSSPrimitiveValue, CSSInheritedValue, DOMCSSValueList

public class AbstractCSSValue
extends Object
implements org.w3c.dom.css.CSSValue

Implementation of CSSValue.

Author:
Carlos Amengual (amengual at informatica.info)

Field Summary
 
Fields inherited from interface org.w3c.dom.css.CSSValue
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST
 
Constructor Summary
protected AbstractCSSValue(short valueType)
           
 
Method Summary
static org.w3c.dom.css.CSSValue createCSSValue(org.w3c.css.sac.LexicalUnit lunit)
          Creates a CSSValue according to the given lexical value.
static org.w3c.dom.css.CSSValue createCSSValue(org.w3c.css.sac.LexicalUnit lunit, boolean subproperty)
          Creates a CSSValue according to the given lexical value.
 String getCssText()
           
 short getCssValueType()
           
 void setCssText(String cssText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCSSValue

protected AbstractCSSValue(short valueType)
Method Detail

getCssText

public String getCssText()
Specified by:
getCssText in interface org.w3c.dom.css.CSSValue

setCssText

public void setCssText(String cssText)
                throws DOMException
Specified by:
setCssText in interface org.w3c.dom.css.CSSValue
Throws:
DOMException

getCssValueType

public short getCssValueType()
Specified by:
getCssValueType in interface org.w3c.dom.css.CSSValue

createCSSValue

public static org.w3c.dom.css.CSSValue createCSSValue(org.w3c.css.sac.LexicalUnit lunit)
Creates a CSSValue according to the given lexical value.

The value is assumed to be stand-alone, independent of a shorthand property.

Parameters:
lunit - the lexical value.
Returns:
a CSSValue associated to the given lexical value.

createCSSValue

public static org.w3c.dom.css.CSSValue createCSSValue(org.w3c.css.sac.LexicalUnit lunit,
                                                      boolean subproperty)
Creates a CSSValue according to the given lexical value.

Parameters:
lunit - the lexical value.
subproperty - true if the value is created under the umbrella of a shorthand set.
Returns:
a CSSValue associated to the given lexical value.


Copyright © 2011 informatica.info. All Rights Reserved.