StyleSheet interface is the abstract base interface for
any type of style sheet. It represents a single style sheet associated
with a structured document. In HTML, the StyleSheet interface represents
either an external style sheet, included via the HTML LINK element, or
an inline STYLE element. In XML, this interface represents an external
style sheet, included via a style sheet processing instruction.
See also the Document Object Model (DOM) Level 2 Style Specification.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public String | |
| public MediaList | |
| public Node | |
| public StyleSheet | getParentStyleSheet()
For style sheet languages that support the concept of style sheet inclusion, this attribute represents the including style sheet, if one exists. |
| public String | |
| public String | |
| public void |
| getDisabled | back to summary |
|---|---|
| public boolean getDisabled()
| |
| getHref | back to summary |
|---|---|
| public String getHref() If the style sheet is a linked style sheet, the value of its attribute
is its location. For inline style sheets, the value of this attribute
is | |
| getMedia | back to summary |
|---|---|
| public MediaList getMedia() The intended destination media for style information. The media is
often specified in the | |
| getOwnerNode | back to summary |
|---|---|
| public Node getOwnerNode() The node that associates this style sheet with the document. For HTML,
this may be the corresponding | |
| getParentStyleSheet | back to summary |
|---|---|
| public StyleSheet getParentStyleSheet() For style sheet languages that support the concept of style sheet
inclusion, this attribute represents the including style sheet, if
one exists. If the style sheet is a top-level style sheet, or the
style sheet language does not support inclusion, the value of this
attribute is | |
| getTitle | back to summary |
|---|---|
| public String getTitle() The advisory title. The title is often specified in the
| |
| getType | back to summary |
|---|---|
| public String getType() This specifies the style sheet language for this style sheet. The
style sheet language is specified as a content type (e.g.
"text/css"). The content type is often specified in the
| |
| setDisabled | back to summary |
|---|---|
| public void setDisabled(boolean disabled)
| |