org.stjs.javascript
Class CSSStyleDeclaration

java.lang.Object
  extended by org.stjs.javascript.CSSStyleDeclaration

public abstract class CSSStyleDeclaration
extends Object


Field Summary
 String cssText
          Textual representation of the declaration block.
 Integer length
          The number of properties.
 CSSStyleRule parentRule
          The containing cssRule.
 
Constructor Summary
CSSStyleDeclaration()
           
 
Method Summary
abstract  String getPropertyPriority(String propertyName)
           
abstract  String getPropertyValue(String propertyName)
           
abstract  String index(Integer item)
           
abstract  String removeProperty(String propertyName)
           
abstract  void setProperty(String propertyName, String value, String priority)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cssText

public String cssText
Textual representation of the declaration block. Setting this attribute changes the style.


length

public Integer length
The number of properties. See the item method below.


parentRule

public CSSStyleRule parentRule
The containing cssRule.

Constructor Detail

CSSStyleDeclaration

public CSSStyleDeclaration()
Method Detail

getPropertyPriority

public abstract String getPropertyPriority(String propertyName)
Parameters:
propertyName -
Returns:
the optional priority, "important".

getPropertyValue

public abstract String getPropertyValue(String propertyName)
Parameters:
propertyName -
Returns:
the property value

index

public abstract String index(Integer item)
Parameters:
item -
Returns:
the property name

removeProperty

public abstract String removeProperty(String propertyName)
Parameters:
propertyName -
Returns:
the value deleted

setProperty

public abstract void setProperty(String propertyName,
                                 String value,
                                 String priority)
Parameters:
propertyName -
value -
priority - (important or null)


Copyright © 2013. All Rights Reserved.