Class AdjacentSiblingCombinator
- java.lang.Object
-
- ej.mwt.stylesheet.selector.combinator.Combinator
-
- ej.mwt.stylesheet.selector.combinator.AdjacentSiblingCombinator
-
- All Implemented Interfaces:
Selector
public class AdjacentSiblingCombinator extends Combinator
An adjacent sibling combinator selects by checking the widget immediate sibling.Equivalent to
widget+widget
selector in CSS.- See Also:
Widget.getParent()
-
-
Constructor Summary
Constructors Constructor Description AdjacentSiblingCombinator(Selector selector1, Selector selector2)
Creates an adjacent sibling combinator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
appliesToWidget(Widget widget)
Checks whether or not this selector applies to the given widget.-
Methods inherited from class ej.mwt.stylesheet.selector.combinator.Combinator
equals, getFirstSelector, getSecondSelector, getSpecificity, hashCode
-
-