Package eu.webtoolkit.jwt
Class WCssStyleSheet
java.lang.Object
eu.webtoolkit.jwt.WCssStyleSheet
A CSS style sheet.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal WCssRule
Adds a CSS rule.Adds a CSS rule.final WCssTemplateRule
addRule
(String selector, WCssDecorationStyle style) Adds a CSS rule.addRule
(String selector, WCssDecorationStyle style, String ruleName) Adds a CSS rule.final WCssTextRule
Adds a CSS rule.Adds a CSS rule.void
cssText
(StringBuilder out, boolean all) boolean
Returns if a rule was already defined in this style sheet.void
javaScriptUpdate
(WApplication app, StringBuilder js, boolean all) removeRule
(WCssRule rule) Removes a rule.
-
Constructor Details
-
WCssStyleSheet
public WCssStyleSheet()Creates a new (internal) style sheet.
-
-
Method Details
-
addRule
Adds a CSS rule.Add a rule using the CSS selector
selector
, with CSS declarations indeclarations
. These declarations must be a list separated by semi-colons (;).Optionally, you may give a
ruleName
, which may later be used to check if the rule was already defined.- See Also:
-
addRule
Adds a CSS rule. -
addRule
Adds a CSS rule.Add a rule using the CSS selector
selector
, with styles specified instyle
.Optionally, you may give a
ruleName
, which may later be used to check if the rule was already defined.- See Also:
-
addRule
Adds a CSS rule.Returns
addRule(selector, style, "")
-
addRule
Adds a CSS rule.Optionally, you may give a
ruleName
, which may later be used to check if the rule was already defined. Note: you may not pass the same rule to 2 diffrent applications.- See Also:
-
addRule
Adds a CSS rule.Returns
addRule(rule, "")
-
isDefined
Returns if a rule was already defined in this style sheet.Returns whether a rule was added with the given
ruleName
. -
removeRule
Removes a rule. -
cssText
-
javaScriptUpdate
-