public class CSSRule extends SimpleScriptable
| Modifier and Type | Field and Description |
|---|---|
static short |
CHARSET_RULE
The rule is a
CSSCharsetRule. |
static short |
FONT_FACE_RULE
The rule is a
CSSFontFaceRule. |
static short |
IMPORT_RULE
The rule is a
CSSImportRule. |
static short |
MEDIA_RULE
The rule is a
CSSMediaRule. |
static short |
PAGE_RULE
The rule is a
CSSPageRule. |
static short |
STYLE_RULE
The rule is a
CSSStyleRule. |
static short |
UNKNOWN_RULE
The rule is a
CSSUnknownRule. |
| Modifier | Constructor and Description |
|---|---|
|
CSSRule()
Deprecated.
|
protected |
CSSRule(CSSStyleSheet stylesheet,
org.w3c.dom.css.CSSRule rule)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static CSSRule |
create(CSSStyleSheet stylesheet,
org.w3c.dom.css.CSSRule rule)
Creates a CSSRule according to the specified rule type.
|
String |
getCssText()
Returns the parsable textual representation of the rule.
|
CSSRule |
getParentRule()
If this rule is contained inside another rule (e.g.
|
CSSStyleSheet |
getParentStyleSheet()
Returns the style sheet that contains this rule.
|
protected org.w3c.dom.css.CSSRule |
getRule()
Returns the wrapped rule.
|
short |
getType()
Returns the type of the rule.
|
void |
setCssText(String cssText)
Sets the parsable textual representation of the rule.
|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setPrototype, sizepublic static final short UNKNOWN_RULE
CSSUnknownRule.public static final short STYLE_RULE
CSSStyleRule.public static final short CHARSET_RULE
CSSCharsetRule.public static final short IMPORT_RULE
CSSImportRule.public static final short MEDIA_RULE
CSSMediaRule.public static final short FONT_FACE_RULE
CSSFontFaceRule.public static final short PAGE_RULE
CSSPageRule.@Deprecated public CSSRule()
protected CSSRule(CSSStyleSheet stylesheet, org.w3c.dom.css.CSSRule rule)
stylesheet - the Stylesheet of this rule.rule - the wrapped rulepublic static CSSRule create(CSSStyleSheet stylesheet, org.w3c.dom.css.CSSRule rule)
stylesheet - the Stylesheet of this rulerule - the wrapped rulepublic short getType()
public String getCssText()
public void setCssText(String cssText)
cssText - the parsable textual representation of the rulepublic CSSStyleSheet getParentStyleSheet()
public CSSRule getParentRule()
null.protected org.w3c.dom.css.CSSRule getRule()
Copyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.