|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.doc.style.css.CSSStyleSheetFactory
public abstract class CSSStyleSheetFactory
CSS2 style sheet factory.
| Field Summary | |
|---|---|
static String |
XHTML_NAMESPACE_URI
|
| Constructor Summary | |
|---|---|
CSSStyleSheetFactory()
|
|
| Method Summary | |
|---|---|
org.w3c.dom.css.CSSStyleSheet |
createStyleSheet()
Creates a CSS style sheet in XHTML namespace for all media. |
abstract org.w3c.dom.css.CSSStyleSheet |
createStyleSheet(String namespaceUri,
org.w3c.dom.stylesheets.MediaList mediaList)
Creates a CSS style sheet. |
org.w3c.dom.css.CSSStyleSheet |
createStyleSheet(String namespaceUri,
String media)
Creates a CSS style sheet for a target media. |
protected InputStream |
loadCSSfromClasspath(String cssFilename)
|
org.w3c.dom.css.CSSStyleSheet |
loadXHTMLDefaultSheet()
Loads a default CSS style sheet for (X)HTML documents. |
static void |
parse(org.w3c.dom.css.CSSStyleSheet sheet,
org.w3c.css.sac.InputSource source)
Parses a style sheet from a source. |
void |
setClassLoader(ClassLoader loader)
Sets the class loader to be used when loading internal style sheets. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String XHTML_NAMESPACE_URI
| Constructor Detail |
|---|
public CSSStyleSheetFactory()
| Method Detail |
|---|
public org.w3c.dom.css.CSSStyleSheet createStyleSheet()
public org.w3c.dom.css.CSSStyleSheet createStyleSheet(String namespaceUri,
String media)
namespaceUri - the Namespace URI for the style sheet.media - the target media for style information.
public abstract org.w3c.dom.css.CSSStyleSheet createStyleSheet(String namespaceUri,
org.w3c.dom.stylesheets.MediaList mediaList)
namespaceUri - the Namespace URI for the style sheet.mediaList - the target media list for the style information.
public static void parse(org.w3c.dom.css.CSSStyleSheet sheet,
org.w3c.css.sac.InputSource source)
throws DOMException,
IOException
If the given style sheet Object is not empty, the rules from the parsed source will be added at the end of the rule list.
sheet - the style sheet to be filled from the source.source - the SAC input source.
DOMException - if a DOM problem is found parsing the sheet.
org.w3c.css.sac.CSSException - if a non-DOM problem is found parsing the sheet.
IOException - if a problem is found reading the sheet.public void setClassLoader(ClassLoader loader)
loader - the class loader.
public org.w3c.dom.css.CSSStyleSheet loadXHTMLDefaultSheet()
throws IOException
IOException - if a problem arose when reading the
default sheet.protected InputStream loadCSSfromClasspath(String cssFilename)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||