public class StyleSheet extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
StyleSheet(String href,
String type)
Creates by specifying the file to contain the style sheets.
|
StyleSheet(String content,
String type,
boolean byContent)
Creates by assigning the content (style sheets).
|
StyleSheet(String content,
String type,
String media,
boolean byContent)
Creates by assigning the content (style sheets).
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
equals(Object o) |
String |
getContent()
Returns the style sheets, or null if
getHref() is not null. |
String |
getHref()
Returns the href that contains the style sheets, or null if
getContent() is not null. |
String |
getMedia()
Returns the media, or null if not available.
|
String |
getType()
Returns the type.
|
int |
hashCode() |
String |
toString() |
public StyleSheet(String href, String type)
href - URI of the file containing the style sheets.type - the type. If null, "text/css" is assumed.public StyleSheet(String content, String type, boolean byContent)
content - the style content or an URI to an external file.type - the type. If null, "text/css" is assumed.byContent - the content argument is the style content, or
an URI to an external contentpublic StyleSheet(String content, String type, String media, boolean byContent)
content - the style content or an URI to an external file.type - the type. If null, "text/css" is assumed.media - the media. If null, it is omitted.byContent - the content argument is the style content, or
an URI to an external contentpublic String getHref()
getContent() is not null.public String getType()
public String getMedia()
Refer to media-depedent style sheet for details.
Copyright © 2018. All rights reserved.