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
-
Method Summary
Modifier and TypeMethodDescriptionabstract org.w3c.dom.stylesheets.StyleSheet
clone()
Clone this style sheet.protected abstract ErrorHandler
getTitle()
Gets the advisory title.abstract URLConnection
openConnection
(URL url, String referrerPolicy) Open a non-interactive connection to the given URL.protected abstract void
setMedia
(MediaQueryList media) Set the destination media for this sheet.protected void
abstract String
Returns a minified parsable representation of the rule list of this sheet.abstract String
Returns a serialization of this style sheet in the form of aSTYLE
element with its attributes and content.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getTitle
in 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 thereferrerpolicy
content 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 themedia
is 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 aSTYLE
element with its attributes and content.- Returns:
- an HTML
STYLE
element representing this style sheet.
-