Package eu.webtoolkit.jwt
Class WCssRule
- java.lang.Object
-
- eu.webtoolkit.jwt.WObject
-
- eu.webtoolkit.jwt.WCssRule
-
- Direct Known Subclasses:
WCssTemplateRule,WCssTextRule
public abstract class WCssRule extends WObject
Abstract rule in a CSS style sheet.A rule presents CSS style properties that are applied to a selected set of elements.
Use
WCssTemplateRuleif you would like to use a widget as a template for specifying (and updating) a style rule, using the widgets style properties, orWCssTextRuleif you wish to directly specify the CSS declarations.- See Also:
WCssStyleSheet
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWCssRule(java.lang.String selector)Creates a new CSS rule with given selector.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.StringgetDeclarations()Returns the declarations.java.lang.StringgetSelector()Returns the selector.WCssStyleSheetgetSheet()Returns the style sheet to which this rule belongs.voidmodified()Indicates that the rule has changed and needs updating.voidsetSelector(java.lang.String selector)Sets the selector.-
Methods inherited from class eu.webtoolkit.jwt.WObject
getId, getObjectName, remove, setFormData, setObjectName, tr
-
-
-
-
Method Detail
-
setSelector
public void setSelector(java.lang.String selector)
Sets the selector.Note: The selector can only be changed as long as the rule hasn't been rendered.
-
getSelector
public java.lang.String getSelector()
Returns the selector.
-
getSheet
public WCssStyleSheet getSheet()
Returns the style sheet to which this rule belongs.
-
modified
public void modified()
Indicates that the rule has changed and needs updating.
-
getDeclarations
public abstract java.lang.String getDeclarations()
Returns the declarations.This is a semi-colon separated list of CSS declarations.
-
-