
org.stjs.javascript.CSSStyleDeclaration Maven / Gradle / Ivy
package org.stjs.javascript;
//TODO :: see if it's best to use the W3C version
public abstract class CSSStyleDeclaration {
/**
* Textual representation of the declaration block. Setting this attribute changes the style.
*/
public String cssText;
/**
* The number of properties. See the item method below.
*/
public Integer length;
/**
* The containing cssRule.
*/
public CSSStyleRule parentRule;
/**
* @param propertyName
* @return the optional priority, "important".
*/
public native String getPropertyPriority (String propertyName);
/**
* @param propertyName
* @return the property value
*/
public native String getPropertyValue (String propertyName);
/**
* @param item
* @return the property name
*/
public native String index (Integer item);
/**
* @param propertyName
* @return the value deleted
*/
public native String removeProperty (String propertyName);
/**
* @param propertyName
* @param value
* @param priority (important or null)
*/
public native void setProperty (String propertyName, String value, String priority);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy