< prev index next >

core/JemmyCore/src/org/jemmy/input/StringMenuOwner.java

Print this page

        

*** 44,77 **** } /** * Pushes the menu using one string for one level of the menu. Comparison * is done according to the policy. ! * @param texts * @see #getPolicy() */ public void push(String... texts) { if(texts.length == 0) { throw new IllegalArgumentException(MENU_PATH_LENGTH_ERROR); } menu().push(createCriteriaList(texts)); } /** ! * A shortcut to <code>menu().push(LookupCriteria<T> ...)</code> * @see #menu() ! * @see Menu#push(org.jemmy.lookup.LookupCriteria<T>[]) ! * @param criteria */ public void push(LookupCriteria<T>... criteria) { menu().push(criteria); } /** * Select a menu item using one string for one level of the menu. Comparison * is done according to the policy. ! * @param texts * @return wrap for the last selected item * @see #getPolicy() */ public Wrap<? extends T> select(String... texts) { if(texts.length == 0) { --- 44,77 ---- } /** * Pushes the menu using one string for one level of the menu. Comparison * is done according to the policy. ! * @param texts todo document * @see #getPolicy() */ public void push(String... texts) { if(texts.length == 0) { throw new IllegalArgumentException(MENU_PATH_LENGTH_ERROR); } menu().push(createCriteriaList(texts)); } /** ! * A shortcut to <code>menu().push(LookupCriteria ...)</code> * @see #menu() ! * @see Menu#push(LookupCriteria[]) ! * @param criteria the lookup criteria */ public void push(LookupCriteria<T>... criteria) { menu().push(criteria); } /** * Select a menu item using one string for one level of the menu. Comparison * is done according to the policy. ! * @param texts todo document * @return wrap for the last selected item * @see #getPolicy() */ public Wrap<? extends T> select(String... texts) { if(texts.length == 0) {
*** 79,92 **** } return menu().select(createCriteriaList(texts)); } /** ! * A shortcut to <code>menu().select(LookupCriteria<T> ...)</code> * @see #menu() ! * @see Menu#select(org.jemmy.lookup.LookupCriteria<T>[]) ! * @param criteria */ public Wrap<? extends T> select(LookupCriteria<T>... criteria) { return menu().select(criteria); } --- 79,93 ---- } return menu().select(createCriteriaList(texts)); } /** ! * A shortcut to <code>menu().select(LookupCriteria ...)</code> * @see #menu() ! * @see Menu#select(LookupCriteria[]) ! * @param criteria the lookup criteria ! * @return todo document */ public Wrap<? extends T> select(LookupCriteria<T>... criteria) { return menu().select(criteria); }
< prev index next >