public class CSSStyleSheetImpl extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
CSSStyleSheetImpl.CSSStyleSheetRuleIndex
CSSStyleSheetRuleIndex.
|
static class |
CSSStyleSheetImpl.SelectorEntry
SelectorEntry.
|
| Constructor and Description |
|---|
CSSStyleSheetImpl()
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRule(int index)
delete the rule at the given pos.
|
boolean |
equals(Object obj) |
CSSRuleListImpl |
getCssRules() |
boolean |
getDisabled() |
String |
getHref() |
MediaListImpl |
getMedia() |
Node |
getOwnerNode() |
AbstractCSSRuleImpl |
getOwnerRule() |
CSSStyleSheetImpl.CSSStyleSheetRuleIndex |
getRuleIndex() |
String |
getTitle() |
int |
hashCode() |
void |
insertRule(String rule,
int index)
inserts a new rule.
|
void |
resetRuleIndex()
Clean the index.
|
void |
setCssRules(CSSRuleListImpl rules) |
void |
setDisabled(boolean disabled)
We will need to respond more fully if a stylesheet is disabled, probably
by generating an event for the main application.
|
void |
setHref(String href)
Set the href.
|
void |
setMediaText(String mediaText)
Set the media text.
|
void |
setOwnerNode(Node ownerNode)
Set the owner node.
|
void |
setOwnerRule(AbstractCSSRuleImpl ownerRule) |
void |
setRuleIndex(CSSStyleSheetImpl.CSSStyleSheetRuleIndex index)
Set the CSSStyleSheetRuleIndex.
|
void |
setTitle(String title)
Set the title.
|
String |
toString() |
public boolean getDisabled()
public void setDisabled(boolean disabled)
disabled - the new disabledpublic Node getOwnerNode()
public String getHref()
public String getTitle()
public MediaListImpl getMedia()
public AbstractCSSRuleImpl getOwnerRule()
public CSSRuleListImpl getCssRules()
public void insertRule(String rule, int index) throws DOMException
rule - the rule to insertindex - the insert posDOMException - in case of errorpublic void deleteRule(int index)
throws DOMException
index - the posDOMException - in case of errorpublic void setOwnerNode(Node ownerNode)
ownerNode - the new nodepublic void setHref(String href)
href - the new hrefpublic void setTitle(String title)
title - the new titlepublic void setMediaText(String mediaText)
mediaText - the new media textpublic void setOwnerRule(AbstractCSSRuleImpl ownerRule)
ownerRule - the new ownerRulepublic void setCssRules(CSSRuleListImpl rules)
rules - the new rulespublic CSSStyleSheetImpl.CSSStyleSheetRuleIndex getRuleIndex()
public void setRuleIndex(CSSStyleSheetImpl.CSSStyleSheetRuleIndex index)
index - the new indexpublic void resetRuleIndex()
Copyright © 2023. All rights reserved.