
public class JsCSSStyleSheet extends JsStyleSheet implements CSSStyleSheet
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
JsCSSStyleSheet() |
| Modifier and Type | Method and Description |
|---|---|
int |
addRule(String selector,
String style) |
int |
addRule(String selector,
String style,
int index) |
void |
deleteRule(int index)
Deletes a rule from the style sheet.
|
JsCSSRuleList |
getCssRules()
Returns a
CSSRuleList of the CSS rules in the style sheet. |
JsCSSRule |
getOwnerRule()
If this style sheet is imported into the document using an
@import rule, the ownerRule property will return that CSSImportRule, otherwise it returns null. |
JsCSSRuleList |
getRules() |
int |
insertRule(String rule,
int index)
Inserts a new style rule into the current style sheet.
|
void |
removeRule(int index) |
getHref, getMedia, getOwnerNode, getParentStyleSheet, getTitle, getType, isDisabled, setDisabledaddEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPanat, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAtcast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringgetHref, getMedia, getOwnerNode, getParentStyleSheet, getTitle, getType, isDisabled, setDisabledintAt, lengthnumberAtpublic final JsCSSRuleList getCssRules()
CSSStyleSheetCSSRuleList of the CSS rules in the style sheet.getCssRules in interface CSSStyleSheetpublic final JsCSSRule getOwnerRule()
CSSStyleSheet@import rule, the ownerRule property will return that CSSImportRule, otherwise it returns null.getOwnerRule in interface CSSStyleSheetpublic final JsCSSRuleList getRules()
getRules in interface CSSStyleSheetpublic final int addRule(String selector, String style)
addRule in interface CSSStyleSheetpublic final int addRule(String selector, String style, int index)
addRule in interface CSSStyleSheetpublic final void deleteRule(int index)
CSSStyleSheetdeleteRule in interface CSSStyleSheetpublic final int insertRule(String rule, int index)
CSSStyleSheetinsertRule in interface CSSStyleSheetpublic final void removeRule(int index)
removeRule in interface CSSStyleSheetCopyright © 2016. All rights reserved.