Lines Matching defs:selector

73     UiSelector(UiSelector selector) {
74 mSelectorAttributes = selector.cloneSelector().mSelectorAttributes;
92 static UiSelector patternBuilder(UiSelector selector) {
93 if (!selector.hasPatternSelector()) {
94 return new UiSelector().patternSelector(selector);
96 return selector;
521 * Adds a child UiSelector criteria to this selector.
523 * Use this selector to narrow the search scope to
526 * @param selector
530 public UiSelector childSelector(UiSelector selector) {
531 return buildSelector(SELECTOR_CHILD, selector);
534 private UiSelector patternSelector(UiSelector selector) {
535 return buildSelector(SELECTOR_PATTERN, selector);
538 private UiSelector containerSelector(UiSelector selector) {
539 return buildSelector(SELECTOR_CONTAINER, selector);
543 * Adds a child UiSelector criteria to this selector which is used to
546 * Use this selector to narrow the search scope to
549 * @param selector
553 public UiSelector fromParent(UiSelector selector) {
554 return buildSelector(SELECTOR_PARENT, selector);
586 UiSelector selector = new UiSelector(this);
588 selector.getLastSubSelector().mSelectorAttributes.put(selectorId, selectorValue);
590 selector.mSelectorAttributes.put(selectorId, selectorValue);
591 return selector;
596 * It is not necessary that every selector have more than one level. A selector
600 * @return a child selector if one exists. Else null if this selector does not
604 UiSelector selector = (UiSelector)mSelectorAttributes.get(UiSelector.SELECTOR_CHILD, null);
605 if (selector != null)
606 return new UiSelector(selector);
611 UiSelector selector =
613 if (selector != null)
614 return new UiSelector(selector);
619 UiSelector selector =
621 if (selector != null)
622 return new UiSelector(selector);
627 UiSelector selector =
629 if (selector != null)
630 return new UiSelector(selector);
831 * Leaf selector indicates no more child or parent selectors
832 * are declared in the this selector.
872 * Returns the deepest selector in the chain of possible sub selectors.
873 * A chain of selector is created when either of {@link UiSelector#childSelector(UiSelector)}
875 * a selector.