Class AndCombinator

  • All Implemented Interfaces:
    Selector

    public class AndCombinator
    extends Combinator
    An 'and' combinator selects the widgets selected by both selectors.
    • Constructor Detail

      • AndCombinator

        public AndCombinator​(Selector selector1,
                             Selector selector2)
        Creates an 'and' combinator.
        Parameters:
        selector1 - the first selector.
        selector2 - the second selector.
    • Method Detail

      • appliesToWidget

        public boolean appliesToWidget​(Widget widget)
        Description copied from interface: Selector
        Checks whether or not this selector applies to the given widget.
        Parameters:
        widget - the widget to test.
        Returns:
        true if this selectors applies to the given widget, false otherwise.