Class representing HTML5 element used by DSL. Used to allow the following syntax and others:
div.styleClass { color blue } div % firstChild { color red }
Type Params | Return Type | Name and description |
---|---|---|
|
StyleGroup |
and(StyleGroup sg) |
|
Selector |
and(Selector e) |
|
Selectable |
and(def e) |
|
Selector |
bitwiseNegate() |
|
Selector |
call(Selector other) |
|
StyleGroup |
call(StyleGroup sg) |
|
def |
getAt(String key) Allows attribute selector to create a new Element. |
|
String |
getValue() |
|
def |
methodMissing(String methodName, def args) Creates a new StyleGroup using the missing methodName as the styleClass. |
|
StyleGroup |
minus(StyleGroup sg) |
|
Selector |
minus(Selector e) |
|
Selectable |
minus(def e) |
|
def |
mod(PseudoClass pc) Adds the given PseudoClass's value to this selector. |
|
def |
mod(StyleGroup styleGroup) Prepends the value of this selector to the given styleGroup's selector. |
|
StyleGroup |
multiply(StyleGroup sg) |
|
Selector |
multiply(Selector e) |
|
Selectable |
multiply(def e) |
|
StyleGroup |
or(StyleGroup sg) |
|
Selector |
or(Selector e) |
|
Selectable |
or(def e) |
|
StyleGroup |
plus(StyleGroup sg) |
|
Selector |
plus(Selector e) |
|
Selectable |
plus(def e) |
|
def |
propertyMissing(String name) Creates a new Selector using the missing property name as the styleClass. |
|
def |
putAt(String key, def value) Allows CSS-like syntax using attribute selectors. |
|
StyleGroup |
rightShift(StyleGroup sg) |
|
Selector |
rightShift(Selector e) |
|
Selectable |
rightShift(def e) |
|
StyleGroup |
sel(String selector = '', Closure closure) Creates a new StyleGroup element and runs given closure on it. |
|
void |
setValue(String sel) |
|
StyleGroup |
sg(String selector = '', Closure closure) Creates a new StyleGroup element and runs given closure on it. |
|
String |
toString() |
|
StyleGroup |
withClass(String styleClass, Closure closure) Creates a new StyleGroup element with given style class and runs given closure on it. |
|
StyleGroup |
withPseudoClass(String pseudoClass, Closure closure) Creates a new StyleGroup element with given pseudoClass and runs given closure on it. |
|
StyleGroup |
xor(StyleGroup sg) |
|
Selector |
xor(Selector e) |
|
Selectable |
xor(def e) |
Creates a new StyleGroup using the missing methodName as the styleClass.
Adds the given PseudoClass's value to this selector. Allows syntax: input % hover.
Prepends the value of this selector to the given styleGroup's selector. Allows syntax: input % hover {...}.
Creates a new Selector using the missing property name as the styleClass. Used to allow syntax:
div.styleClass { color blue }
Allows CSS-like syntax using attribute selectors. For example: input['class$="test"'] = {}
Creates a new StyleGroup element and runs given closure on it.
Creates a new StyleGroup element and runs given closure on it.
Creates a new StyleGroup element with given style class and runs given closure on it.
Creates a new StyleGroup element with given pseudoClass and runs given closure on it.
Groovy Documentation