|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.pilots.html4.DStyleSheet
| Constructor Summary | |
protected |
DStyleSheet(int defaultNamespace,
DNode ownerNode,
DStyleSheet parentStyleSheet,
DCSSRule ownerRule)
|
|
DStyleSheet(String title,
int defaultNamespace,
DNode ownerNode,
DStyleSheet parentStyleSheet,
DCSSRule ownerRule)
|
| Method Summary | |
void |
addRule(String sel,
String rule)
|
void |
deleteRule(int index)
Used to delete a rule from the style sheet. |
protected void |
dispatchDOMEvent(short type,
String name,
String value)
Utility to dispatch the CSSModified MutationEvent on Element closest to this rule. |
CSSRuleList |
getCssRules()
The list of all CSS rules contained within the style sheet. |
protected DRuleList |
getDCssRules()
|
boolean |
getDisabled()
false if the style sheet is applied to the document. |
String |
getHref()
If the style sheet is a linked style sheet, the value of its attribute is its location. |
String |
getId()
|
MediaList |
getMedia()
The intended destination media for style information. |
Node |
getOwnerNode()
The node that associates this style sheet with the document. |
CSSRule |
getOwnerRule()
If this style sheet comes from an @import rule, the
ownerRule attribute will contain the
CSSImportRule. |
StyleSheet |
getParentStyleSheet()
For style sheet languages that support the concept of style sheet inclusion, this attribute represents the including style sheet, if one exists. |
CSSRuleList |
getRules()
|
String |
getTitle()
The advisory title. |
String |
getType()
This specifies the style sheet language for this style sheet. |
int |
insertRule(String rule,
int index)
Used to insert a new rule into the style sheet. |
void |
setDisabled(boolean disabled)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DStyleSheet(String title,
int defaultNamespace,
DNode ownerNode,
DStyleSheet parentStyleSheet,
DCSSRule ownerRule)
protected DStyleSheet(int defaultNamespace,
DNode ownerNode,
DStyleSheet parentStyleSheet,
DCSSRule ownerRule)
| Method Detail |
public final String getId()
public String getType()
StyleSheetownerNode. Also see the type attribute definition for
the LINK element in HTML 4.0, and the type
pseudo-attribute for the XML style sheet processing instruction.
getType in interface StyleSheetpublic boolean getDisabled()
StyleSheetfalse if the style sheet is applied to the document.
true if it is not. Modifying this attribute may cause a
new resolution of style for the document. A stylesheet only applies
if both an appropriate medium definition is present and the disabled
attribute is false. So, if the media doesn't apply to the current
user agent, the disabled attribute is ignored.
getDisabled in interface StyleSheetpublic void setDisabled(boolean disabled)
setDisabled in interface StyleSheetpublic Node getOwnerNode()
StyleSheetLINK or STYLE
element. For XML, it may be the linking processing instruction. For
style sheets that are included by other style sheets, the value of
this attribute is null.
getOwnerNode in interface StyleSheetpublic StyleSheet getParentStyleSheet()
StyleSheetnull.
getParentStyleSheet in interface StyleSheetpublic String getHref()
StyleSheetnull. See the href attribute definition for the
LINK element in HTML 4.0, and the href pseudo-attribute
for the XML style sheet processing instruction.
getHref in interface StyleSheetpublic String getTitle()
StyleSheetownerNode. See the title attribute definition for the
LINK element in HTML 4.0, and the title pseudo-attribute
for the XML style sheet processing instruction.
getTitle in interface StyleSheetpublic MediaList getMedia()
StyleSheetownerNode. If no media has been
specified, the MediaList will be empty. See the media
attribute definition for the LINK element in HTML 4.0,
and the media pseudo-attribute for the XML style sheet processing
instruction . Modifying the media list may cause a change to the
attribute disabled.
getMedia in interface StyleSheetpublic CSSRule getOwnerRule()
CSSStyleSheet@import rule, the
ownerRule attribute will contain the
CSSImportRule. In that case, the ownerNode
attribute in the StyleSheet interface will be
null. If the style sheet comes from an element or a
processing instruction, the ownerRule attribute will be
null and the ownerNode attribute will
contain the Node.
getOwnerRule in interface CSSStyleSheetpublic final CSSRuleList getCssRules()
CSSStyleSheet
getCssRules in interface CSSStyleSheetprotected DRuleList getDCssRules()
public int insertRule(String rule,
int index)
CSSStyleSheet
insertRule in interface CSSStyleSheetrule - The parsable text representing the rule. For rule sets
this contains both the selector and the style declaration. For
at-rules, this specifies both the at-identifier and the rule
content.index - The index within the style sheet's rule list of the rule
before which to insert the specified rule. If the specified index
is equal to the length of the style sheet's rule collection, the
rule will be added to the end of the style sheet.
public void deleteRule(int index)
CSSStyleSheet
deleteRule in interface CSSStyleSheetindex - The index within the style sheet's rule list of the rule
to remove.public CSSRuleList getRules()
public void addRule(String sel,
String rule)
protected final void dispatchDOMEvent(short type,
String name,
String value)
type - The exact type of style-changename - The name of the style which was affectedvalue - The new value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||