org.kde.koala
public class CSSStyleDeclaration extends Object implements QtSupport
CSSStyleDeclaration
interface represents a
single
CSS declaration block . This interface may be used to
determine the style properties currently set in a block or to set
style properties explicitly within the block.
While an implementation may not recognize all CSS properties
within a CSS declaration block, it is expected to provide access to
all specified properties through the CSSStyleDeclaration
interface. Furthermore, implementations that support a
specific level of CSS should correctly handle CSS
shorthand properties for that level. For a further discussion
of shorthand properties, see the CSS2Properties
interface.UNKNOWN: The UNKNOWN: The parsable textual representation of the declaration block (including the surrounding curly braces). Parameters: propertyName The name of the CSS property. See the CSS property
index . Returns: Returns the value of the property if it has been
explicitly set for this declaration block. Returns the
UNKNOWN: Used to retrieve the object representation of the value of a CSS property if it has been explicitly set within this declaration block. Parameters: propertyName The name of the CSS property. See the CSS property
index . Returns: A string representing the priority (e.g.
UNKNOWN: Used to retrieve the priority of a CSS property (e. Parameters: propertyName The name of the CSS property. See the CSS property
index . Returns: Returns the value of the property if it has been
explicitly set for this declaration block. Returns the empty
string if the property has not been set. UNKNOWN: Used to retrieve the value of a CSS property if it has been explicitly set within this declaration block. UNKNOWN: Parameters: index Index of the property name to retrieve. Returns: The name of the property at this ordinal position. The
empty string if no property exists at this position. UNKNOWN: Used to retrieve the properties that have been explicitly set in this declaration block. UNKNOWN: The number of properties that have been explicitly set in this declaration block. UNKNOWN: The CSS rule that contains this declaration block. Parameters: propertyName The name of the CSS property. See the CSS property
index . Returns: Returns the value of the property if it has been
explicitly set for this declaration block. Returns the empty
string if the property has not been set or the property name
does not correspond to a valid CSS2 property. UNKNOWN: Used to remove a CSS property if it has been explicitly set within this declaration block. UNKNOWN: see cssText Parameters: propertyName The name of the CSS property. See the CSS property
index . value The new value of the property. priority The new priority of the property (e.g.
UNKNOWN: Used to set a property value and priority within this declaration block. CSSStyleDeclaration
interface represents a single
Constructor Summary protected CSSStyleDeclaration(Class dummy) CSSStyleDeclaration() CSSStyleDeclaration(CSSStyleDeclaration other)
Method Summary String cssText() CSSValue getPropertyCSSValue(String propertyName) String getPropertyPriority(String propertyName) "important"
qualifier) if the property has been
explicitly set in this declaration block. String getPropertyValue(String propertyName) boolean isNull() String item(long index) long length() CSSRule parentRule() String removeProperty(String propertyName) void setCssText(String arg1) void setProperty(String propertyName, String value, String priority) Constructor Detail
CSSStyleDeclaration
CSSStyleDeclaration
CSSStyleDeclaration
Method Detail
cssText
getPropertyCSSValue
getPropertyValue
and setProperty
methods.null
if the property has not been set. getPropertyPriority
"important"
qualifier) if the property has been
explicitly set in this declaration block."important"
) if one exists. The empty string if none
exists. getPropertyValue
isNull
item
length
parentRule
removeProperty
setCssText
setProperty
"important"
).