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()
getCssRules.
|
boolean |
getDisabled()
getDisabled.
|
String |
getHref()
getHref.
|
MediaListImpl |
getMedia()
getMedia.
|
Node |
getOwnerNode()
getOwnerNode.
|
AbstractCSSRuleImpl |
getOwnerRule()
getOwnerRule.
|
CSSStyleSheetImpl.CSSStyleSheetRuleIndex |
getRuleIndex()
getRuleIndex.
|
String |
getTitle()
getTitle.
|
int |
hashCode() |
void |
insertRule(String rule,
int index)
inserts a new rule.
|
void |
resetRuleIndex()
Clean the index.
|
void |
setCssRules(CSSRuleListImpl rules)
setCssRules.
|
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)
setOwnerRule.
|
void |
setRuleIndex(CSSStyleSheetImpl.CSSStyleSheetRuleIndex index)
Set the CSSStyleSheetRuleIndex.
|
void |
setTitle(String title)
Set the title.
|
String |
toString() |
public boolean getDisabled()
getDisabled.
public void setDisabled(boolean disabled)
disabled - the new disabledpublic Node getOwnerNode()
getOwnerNode.
public String getHref()
getHref.
public String getTitle()
getTitle.
public MediaListImpl getMedia()
getMedia.
public AbstractCSSRuleImpl getOwnerRule()
getOwnerRule.
public CSSRuleListImpl getCssRules()
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)
setOwnerRule.
ownerRule - the new ownerRulepublic void setCssRules(CSSRuleListImpl rules)
setCssRules.
rules - the new rulespublic CSSStyleSheetImpl.CSSStyleSheetRuleIndex getRuleIndex()
getRuleIndex.
public void setRuleIndex(CSSStyleSheetImpl.CSSStyleSheetRuleIndex index)
index - the new indexpublic void resetRuleIndex()
Copyright © 2025 HtmlUnit. All rights reserved.