|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.html.StyleSheet
public class StyleSheet
Represents a style sheet.
| Constructor Summary | |
|---|---|
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). |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 content
public 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 content| Method Detail |
|---|
public String getHref()
getContent() is not null.
public String getType()
public String getMedia()
Refer to media-depedent style sheet for details.
public String getContent()
getHref() is not null.
public Object clone()
clone in class Objectpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||