|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.html.StyleSheet
public class StyleSheet
Represents a style sheet.
Constructor Summary | |
---|---|
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). |
Method Summary | |
---|---|
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()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 contentMethod Detail |
---|
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 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |