public class StyleSheet
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Constructor and Description |
---|
StyleSheet(java.lang.String href,
java.lang.String type)
Creates by specifying the file to contain the style sheets.
|
StyleSheet(java.lang.String content,
java.lang.String type,
boolean byContent)
Creates by assigning the content (style sheets).
|
StyleSheet(java.lang.String content,
java.lang.String type,
java.lang.String media,
boolean byContent)
Creates by assigning the content (style sheets).
|
StyleSheet(java.lang.String content,
java.lang.String type,
java.lang.String media,
boolean byContent,
boolean disabled)
Creates by assigning the content (style sheets).
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getContent()
Returns the style sheets, or null if
getHref() is not null. |
java.lang.String |
getHref()
Returns the href that contains the style sheets, or null if
getContent() is not null. |
java.lang.String |
getMedia()
Returns the media, or null if not available.
|
java.lang.String |
getType()
Returns the type.
|
int |
hashCode() |
boolean |
isDisabled()
Returns whether the style sheet is disabled.
|
java.lang.String |
toString() |
public StyleSheet(java.lang.String href, java.lang.String type)
href
- URI of the file containing the style sheets.type
- the type. If null, "text/css" is assumed.public StyleSheet(java.lang.String content, java.lang.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(java.lang.String content, java.lang.String type, java.lang.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 StyleSheet(java.lang.String content, java.lang.String type, java.lang.String media, boolean byContent, boolean disabled)
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 contentdisabled
- whether the style sheet is disabled.public java.lang.String getHref()
getContent()
is not null.public java.lang.String getType()
public java.lang.String getMedia()
Refer to media-depedent style sheet for details.
public java.lang.String getContent()
getHref()
is not null.public boolean isDisabled()
Default: false.
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Copyright © 2005-2021 Potix Corporation. All Rights Reserved.