Package org.zkoss.html
Class StyleSheet
java.lang.Object
org.zkoss.html.StyleSheet
- All Implemented Interfaces:
Serializable,Cloneable
Represents a style sheet.
- Since:
- 6.0.0
- Author:
- tomyeh
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStyleSheet(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).StyleSheet(String content, String type, String media, boolean byContent, boolean disabled) Creates by assigning the content (style sheets). -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanReturns the style sheets, or null ifgetHref()is not null.getHref()Returns the href that contains the style sheets, or null ifgetContent()is not null.getMedia()Returns the media, or null if not available.getType()Returns the type.inthashCode()booleanReturns whether the style sheet is disabled.toString()
-
Constructor Details
-
StyleSheet
Creates by specifying the file to contain the style sheets.- Parameters:
href- URI of the file containing the style sheets.type- the type. If null, "text/css" is assumed.
-
StyleSheet
Creates by assigning the content (style sheets).- Parameters:
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
-
StyleSheet
Creates by assigning the content (style sheets).- Parameters:
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
-
StyleSheet
Creates by assigning the content (style sheets).- Parameters:
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.- Since:
- 9.5.0
-
-
Method Details
-
getHref
Returns the href that contains the style sheets, or null ifgetContent()is not null. -
getType
Returns the type. -
getMedia
Returns the media, or null if not available.Refer to media-depedent style sheet for details.
-
getContent
Returns the style sheets, or null ifgetHref()is not null. -
isDisabled
public boolean isDisabled()Returns whether the style sheet is disabled.Default: false.
- Returns:
- boolean
- Since:
- 9.5.0
-
clone
-
toString
-
hashCode
public int hashCode() -
equals
-