< prev index next >

core/JemmyCore/src/org/jemmy/interfaces/Menu.java

Print this page




  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package org.jemmy.interfaces;
  27 
  28 import org.jemmy.lookup.LookupCriteria;
  29 
  30 /**
  31  * Represents a hierarchical structure (hence extending TreeSelector) in which
  32  * elements not only could be selected but also "pushes", which is an action
  33  * typically performed with menu.<br/>
  34  * @author shura
  35  * @see MenuOwner
  36  */
  37 public interface Menu<T> extends TreeSelector<T>{
  38 
  39     /**
  40      * Pushes a menu item conforming to the criteria. That would mean that all
  41      * intermediate items get expanded and the menus are shown, etc., etc. It is
  42      * up to implementation whether to call select first or to do it somehow
  43      * differently.
  44      * @param criteria used one for one level. In case of a menu bar,
  45      * for example, first criteria is to be used to find a top level menu, second -
  46      * to find a menu underneath, etc
  47      */
  48     public abstract void push(LookupCriteria<T>... criteria);
  49 
  50 }


  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package org.jemmy.interfaces;
  27 
  28 import org.jemmy.lookup.LookupCriteria;
  29 
  30 /**
  31  * Represents a hierarchical structure (hence extending TreeSelector) in which
  32  * elements not only could be selected but also "pushes", which is an action
  33  * typically performed with menu.
  34  * @author shura
  35  * @see MenuOwner
  36  */
  37 public interface Menu<T> extends TreeSelector<T>{
  38 
  39     /**
  40      * Pushes a menu item conforming to the criteria. That would mean that all
  41      * intermediate items get expanded and the menus are shown, etc., etc. It is
  42      * up to implementation whether to call select first or to do it somehow
  43      * differently.
  44      * @param criteria used one for one level. In case of a menu bar,
  45      * for example, first criteria is to be used to find a top level menu, second -
  46      * to find a menu underneath, etc
  47      */
  48     public abstract void push(LookupCriteria<T>... criteria);
  49 
  50 }
< prev index next >