|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Style
A CSS Style definition.
A Style is collection of CSS property/value pairs that are applied to a specified component or component element. This target is defined by the CSS selector.
So this object can be understood as the OO equivalent of a CSS style definition likw i.e.
A.myStyle { color: red; background: #fff; }
which consists of a CSS selector before the braces and the CSS property/value list inside the braces.
| Method Summary | |
|---|---|
Selector |
getSelector()
A object defining on what this styles applies to. |
Map<CSSProperty,String> |
properties()
Gets the Map of defined CSS properties. |
String |
put(CSSProperty styleProperty,
String styleValue)
Defines a CSS property/value pair in this style. |
boolean |
putAll(CSSAttributeSet attributes)
Adds a set of CSS property/value pairs to this style definition. |
String |
remove(CSSProperty name)
Removes an attribute from the list. |
| Methods inherited from interface org.wings.Renderable |
|---|
write |
| Method Detail |
|---|
Selector getSelector()
String put(CSSProperty styleProperty,
String styleValue)
boolean putAll(CSSAttributeSet attributes)
attributes - Set of CSS property/value pairs to add to this style definition
true if the style was changed, false if no modification was necessaryString remove(CSSProperty name)
name - the attribute name
Map<CSSProperty,String> properties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||