Package eu.webtoolkit.jwt
Class WCssStyleSheet
java.lang.Object
eu.webtoolkit.jwt.WCssStyleSheet
A CSS style sheet.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal WCssRuleAdds a CSS rule.Adds a CSS rule.final WCssTemplateRuleaddRule(String selector, WCssDecorationStyle style) Adds a CSS rule.addRule(String selector, WCssDecorationStyle style, String ruleName) Adds a CSS rule.final WCssTextRuleAdds a CSS rule.Adds a CSS rule.voidcssText(StringBuilder out, boolean all) booleanReturns if a rule was already defined in this style sheet.voidjavaScriptUpdate(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
-