APIdia Launch Partner
Top Description Methods
org.w3c.dom.css

public Interface DOMImplementationCSS

extends DOMImplementation
Imports
org.w3c.dom.DOMImplementation, .DOMException

This interface allows the DOM user to create a CSSStyleSheet outside the context of a document. There is no way to associate the new CSSStyleSheet with a document in DOM Level 2.

See also the Document Object Model (DOM) Level 2 Style Specification.

Since
1.4, DOM Level 2

Method Summary

Modifier and TypeMethod and Description
public CSSStyleSheet

Returns:

A new CSS style sheet.
createCSSStyleSheet
(String
The advisory title. See also the section.
title
,
String
The comma-separated list of media associated with the new style sheet. See also the section.
media
)

Creates a new CSSStyleSheet.

Inherited from org.w3c.dom.DOMImplementation:
createDocumentcreateDocumentTypegetFeaturehasFeature

Method Detail

createCSSStyleSheetback to summary
public CSSStyleSheet createCSSStyleSheet(String title, String media) throws DOMException

Creates a new CSSStyleSheet.

Parameters
title:String

The advisory title. See also the section.

media:String

The comma-separated list of media associated with the new style sheet. See also the section.

Returns:CSSStyleSheet

A new CSS style sheet.

Exceptions
DOMException:
SYNTAX_ERR: Raised if the specified media string value has a syntax error and is unparsable.