Package io.sf.carte.doc.style.css.om
Class AbstractStyleSheet
java.lang.Object
io.sf.carte.doc.style.css.om.AbstractStyleSheet
- All Implemented Interfaces:
Serializable,Cloneable,org.w3c.dom.stylesheets.StyleSheet
- Direct Known Subclasses:
AbstractCSSStyleSheet
public abstract class AbstractStyleSheet
extends Object
implements org.w3c.dom.stylesheets.StyleSheet, Cloneable, Serializable
Abstract class to be inherited by all CSS style sheets.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.w3c.dom.stylesheets.StyleSheetclone()Clone this style sheet.protected abstract ErrorHandlergetTitle()Gets the advisory title.abstract URLConnectionopenConnection(URL url, String referrerPolicy) Open a non-interactive connection to the given URL.protected abstract voidsetMedia(MediaQueryList media) Set the destination media for this sheet.protected voidabstract StringReturns a minified parsable representation of the rule list of this sheet.abstract StringReturns a serialization of this style sheet in the form of aSTYLEelement with its attributes and content.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.w3c.dom.stylesheets.StyleSheet
getDisabled, getHref, getMedia, getOwnerNode, getParentStyleSheet, getType, setDisabled
-
Constructor Details
-
AbstractStyleSheet
-
-
Method Details
-
getTitle
Gets the advisory title.- Specified by:
getTitlein interfaceorg.w3c.dom.stylesheets.StyleSheet- Returns:
- the title.
-
setTitle
-
clone
public abstract org.w3c.dom.stylesheets.StyleSheet clone()Clone this style sheet. -
getDocumentErrorHandler
-
openConnection
Open a non-interactive connection to the given URL.If this sheet was obtained through a network connection, the returned connection should be opened by the same user agent (and appropriate credentials) that retrieved this sheet.
- Parameters:
url- the URL to connect to.referrerPolicy- the content of thereferrerpolicycontent attribute, if any, or the empty string.- Returns:
- the network connection.
- Throws:
IOException- if an I/O problem occurs opening the connection.
-
setMedia
Set the destination media for this sheet.- Parameters:
media- the destination media.- Throws:
DOMException- if themediais invalid.
-
toMinifiedString
Returns a minified parsable representation of the rule list of this sheet.- Returns:
- a minified parsable representation of the rule list of this sheet.
-
toStyleString
Returns a serialization of this style sheet in the form of aSTYLEelement with its attributes and content.- Returns:
- an HTML
STYLEelement representing this style sheet.
-