|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.webtoolkit.jwt.WObject
eu.webtoolkit.jwt.WCssRule
eu.webtoolkit.jwt.WCssTemplateRule
public class WCssTemplateRule
A CSS rule based on a template widget.
This is a CSS rule whose CSS style properties are defined based on properties of a template widget. When modifying the template widget, these changes are reflected on the CSS rule and thus all widgets that have this CSS rule.
WCssStyleSheet| Constructor Summary | |
|---|---|
WCssTemplateRule(java.lang.String selector)
Creates a CSS rule with a given selector. |
|
WCssTemplateRule(java.lang.String selector,
WObject parent)
Creates a CSS rule with a given selector. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDeclarations()
Returns the declarations. |
WWidget |
getTemplateWidget()
Returns the widget that is used as a template. |
void |
remove()
Destructor. |
| Methods inherited from class eu.webtoolkit.jwt.WCssRule |
|---|
getSelector, getSheet, modified |
| Methods inherited from class eu.webtoolkit.jwt.WObject |
|---|
addChild, getId, getObjectName, setObjectName, tr |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WCssTemplateRule(java.lang.String selector,
WObject parent)
The selector should be a valid CSS selector.
Note: If you want to update the rule, then the selector should be unique and not contain commas, since this is not supported by Microsoft Internet Explorer.
public WCssTemplateRule(java.lang.String selector)
Calls this(selector, (WObject)null)
| Method Detail |
|---|
public void remove()
WCssRule
remove in class WCssRulepublic WWidget getTemplateWidget()
Various properties of the widget are reflected in the CSS style:
WWidget#resize(),
WWidget#setMinimumSize(), and
WWidget#setMaximumSize()WWidget#setPositionScheme(),
WWidget#setOffsets(), WWidget#setFloatSide(), WWidget#setClearSides()WWidget#hide(),
WWidget#show() and
WWidget#setHidden()WWidget#setMargin()WWidget#setLineHeight()WWidget#getDecorationStyle()When modifying one of these properties of the returned widget, the rule will be updated accordingly.
public java.lang.String getDeclarations()
WCssRuleThis is a semi-colon separated list of CSS declarations.
getDeclarations in class WCssRule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||