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, setDisabled
addEventListener, 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, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getHref, getMedia, getOwnerNode, getParentStyleSheet, getTitle, getType, isDisabled, setDisabled
intAt, length
numberAt
public final JsCSSRuleList getCssRules()
CSSStyleSheet
CSSRuleList
of the CSS rules in the style sheet.getCssRules
in interface CSSStyleSheet
public final JsCSSRule getOwnerRule()
CSSStyleSheet
@import
rule, the ownerRule
property will return that CSSImportRule
, otherwise it returns null
.getOwnerRule
in interface CSSStyleSheet
public final JsCSSRuleList getRules()
getRules
in interface CSSStyleSheet
public final int addRule(String selector, String style)
addRule
in interface CSSStyleSheet
public final int addRule(String selector, String style, int index)
addRule
in interface CSSStyleSheet
public final void deleteRule(int index)
CSSStyleSheet
deleteRule
in interface CSSStyleSheet
public final int insertRule(String rule, int index)
CSSStyleSheet
insertRule
in interface CSSStyleSheet
public final void removeRule(int index)
removeRule
in interface CSSStyleSheet
Copyright © 2016. All rights reserved.