Package | Description |
---|---|
ej.style |
Base package containing the styling basic items.
|
ej.style.cascading |
Cascading stylesheet implementation.
|
ej.style.selector |
Default selectors implementations.
|
ej.style.selector.combinator |
Default combinators implementations.
|
Modifier and Type | Method and Description |
---|---|
void |
Stylesheet.addRule(Selector selector,
Style style)
Adds a rule: a style applied to the elements matching a selector.
|
Style |
Stylesheet.getRuleStyle(Selector selector)
Gets the style associated with a selector.
|
void |
Stylesheet.removeRule(Selector selector)
Removes a rule associated with a selector.
|
Modifier and Type | Method and Description |
---|---|
void |
CascadingStylesheet.addRule(Selector selector,
Style style) |
Style |
CascadingStylesheet.getRuleStyle(Selector selector) |
void |
CascadingStylesheet.removeRule(Selector selector) |
Modifier and Type | Class and Description |
---|---|
class |
AttributeSetSelector
An attribute set selector selects by checking if an attribute is set.
|
class |
AttributeValueContainSelector
An attribute value contain selector selects by checking that the value of an attribute contains a specific string.
|
class |
AttributeValueEndSelector
An attribute value end selector selects by checking that the value of an attribute ends with a specific string.
|
class |
AttributeValueListSelector
An attribute value list selector selects by checking that a value is contained in an attribute.
|
class |
AttributeValuePrefixSelector
An attribute value prefix selector selects by checking that the value of an attribute equals a prefix or starts with
this prefix.
|
class |
AttributeValueSelector
An attribute value selector selects by checking the value of an attribute.
|
class |
AttributeValueStartSelector
An attribute value start selector selects by checking that the value of an attribute starts with a specific string.
|
class |
ClassSelector
A class selector selects from a class.
|
class |
EvenChildSelector
An even child selector selects by checking if an element is at an even position in its parent (1, 3, 5,…).
|
class |
FirstChildSelector
A first child selector selects by checking if an element is the first child of its parent.
|
class |
IDSelector
An ID selector selects by checking if the element is registered in
ElementRegistry . |
class |
InstanceSelector
An instance selector selects by checking the element id (Java instance).
|
class |
LastChildSelector
A last child selector selects by checking if an element is the last child of its parent.
|
class |
NotSelector
A not selector selects every element that is not selected by its wrapped selector.
|
class |
NthChildSelector
A nth child selector selects by checking if an element is the nth child of its parent.
|
class |
OddChildSelector
An odd child selector selects by checking if an element is at an odd position in its parent (0, 2, 4,…).
|
class |
StateSelector
A state selector selects from a state.
|
class |
TypeNameSelector
A type name selector selects by checking the element type name (Java class name).
|
class |
TypeOrSubtypeSelector
A type or subtype selector selects by checking the element type hierarchy (Java class).
|
class |
TypeSelector
A type selector selects by checking the element type (Java class).
|
class |
UniversalSelector
An universal selector selects all elements.
|
Constructor and Description |
---|
NotSelector(Selector selector)
Creates a not selector.
|
Modifier and Type | Class and Description |
---|---|
class |
AdjacentSiblingCombinator
An adjacent sibling combinator selects by checking the element immediate sibling.
|
class |
AndCombinator
An 'and' combinator selects the elements selected by all its inner selectors.
|
class |
ChildCombinator
A child combinator selects by checking the element direct hierarchy.
|
class |
Combinator
A combinator is a selector that aggregates other selectors.
|
class |
DescendantCombinator
A descendant combinator selects by checking the element hierarchy.
|
class |
GeneralSiblingCombinator
A general sibling combinator selects by checking the element sibling.
|
class |
OrCombinator
An 'or' combinator selects the elements selected by at least one of its inner selectors.
|
Modifier and Type | Field and Description |
---|---|
protected Selector[] |
Combinator.selectors
Wrapped selectors list.
|
Constructor and Description |
---|
AdjacentSiblingCombinator(Selector... selectors)
Creates an adjacent sibling combinator.
|
AdjacentSiblingCombinator(Selector selector1,
Selector selector2)
Creates an adjacent sibling combinator.
|
AndCombinator(Selector... selectors)
Creates an 'and' combinator.
|
AndCombinator(Selector selector1,
Selector selector2)
Creates an 'and' combinator.
|
ChildCombinator(Selector... selectors)
Creates a child combinator.
|
ChildCombinator(Selector selector1,
Selector selector2)
Creates a child combinator.
|
Combinator(Selector... selectors)
Creates a combinator with several children.
|
Combinator(Selector selector1,
Selector selector2)
Creates a combinator with two children.
|
DescendantCombinator(Selector... selectors)
Creates a descendant combinator.
|
DescendantCombinator(Selector selector1,
Selector selector2)
Creates a descendant combinator.
|
GeneralSiblingCombinator(Selector... selectors)
Creates a general sibling combinator.
|
GeneralSiblingCombinator(Selector selector1,
Selector selector2)
Creates a general sibling combinator.
|
OrCombinator(Selector... selectors)
Creates an 'or' combinator.
|
OrCombinator(Selector selector1,
Selector selector2)
Creates an 'or' combinator.
|