|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jubula.rc.common.implclasses.MenuUtilBase
org.eclipse.jubula.rc.swing.swing.implclasses.MenuUtil
public abstract class MenuUtil
Helper methods for menus
Method Summary | |
---|---|
static void |
clickMenuItem(org.eclipse.jubula.rc.common.driver.IRobot robot,
javax.swing.JMenuItem item)
Clicks on a menu item |
static void |
closeMenu(org.eclipse.jubula.rc.common.driver.IRobot robot,
javax.swing.JMenuBar menuBar,
int item)
Closes the given item in the given menuBar (if open) |
static void |
closeMenu(org.eclipse.jubula.rc.common.driver.IRobot robot,
javax.swing.JMenuBar menuBar,
java.lang.String item)
Closes the given item in the given menuBar (if open) |
static void |
closePopupMenu(org.eclipse.jubula.rc.common.driver.IRobot robot,
javax.swing.JPopupMenu popup)
Closes the given PopupMenu (if open) |
static javax.swing.JMenu |
findMenu(javax.swing.JMenuBar mb,
int idx)
Tries to find a menu in the menubar. |
static javax.swing.JMenu |
findMenu(javax.swing.JMenuBar mb,
java.lang.String name,
java.lang.String operator)
Tries to find a menu in the menubar. |
static javax.swing.JMenuItem |
findMenuItem(javax.swing.MenuElement menu,
int idx)
Tries to find a menu item in a menu. |
static javax.swing.JMenuItem |
navigateToMenuItem(org.eclipse.jubula.rc.common.driver.IRobot robot,
javax.swing.JMenuBar menuBar,
int[] path)
Tries to navigate through the menu to the specified menu item. |
static javax.swing.JMenuItem |
navigateToMenuItem(org.eclipse.jubula.rc.common.driver.IRobot robot,
javax.swing.JMenuBar menuBar,
java.lang.String[] path,
java.lang.String operator)
Tries to navigate through the menu to the specified menu item. |
static javax.swing.JMenuItem |
navigateToMenuItem(org.eclipse.jubula.rc.common.driver.IRobot robot,
javax.swing.JPopupMenu popup,
int[] path)
Tries to navigate through the menu to the specified menu item. |
static javax.swing.JMenuItem |
navigateToMenuItem(org.eclipse.jubula.rc.common.driver.IRobot robot,
javax.swing.JPopupMenu popup,
java.lang.String[] path,
java.lang.String operator)
Tries to navigate through the menu to the specified menu item. |
static int[] |
splitIndexPath(java.lang.String path)
Splits a path into integers |
static java.lang.String[] |
splitPath(java.lang.String path)
Splits a path into its components. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static javax.swing.JMenu findMenu(javax.swing.JMenuBar mb, java.lang.String name, java.lang.String operator)
mb
- the menu barname
- the name of the menu to findoperator
- operator used for matching
public static javax.swing.JMenu findMenu(javax.swing.JMenuBar mb, int idx)
mb
- the menu baridx
- the index of the menu to find
null
if not foundpublic static int[] splitIndexPath(java.lang.String path)
path
- the path
public static java.lang.String[] splitPath(java.lang.String path)
path
- the path
public static javax.swing.JMenuItem findMenuItem(javax.swing.MenuElement menu, int idx)
menu
- the menuidx
- the index of the menu item
public static void closeMenu(org.eclipse.jubula.rc.common.driver.IRobot robot, javax.swing.JMenuBar menuBar, int item)
robot
- the robotmenuBar
- the menu baritem
- the item to closepublic static void closeMenu(org.eclipse.jubula.rc.common.driver.IRobot robot, javax.swing.JMenuBar menuBar, java.lang.String item)
robot
- the robotmenuBar
- the menu baritem
- the item to closepublic static void closePopupMenu(org.eclipse.jubula.rc.common.driver.IRobot robot, javax.swing.JPopupMenu popup)
robot
- the robotpopup
- the PopupMenupublic static javax.swing.JMenuItem navigateToMenuItem(org.eclipse.jubula.rc.common.driver.IRobot robot, javax.swing.JMenuBar menuBar, java.lang.String[] path, java.lang.String operator)
robot
- robotmenuBar
- the menubarpath
- the path where to navigate in the menu.operator
- operator used for matching
public static javax.swing.JMenuItem navigateToMenuItem(org.eclipse.jubula.rc.common.driver.IRobot robot, javax.swing.JMenuBar menuBar, int[] path)
robot
- robotmenuBar
- the menubarpath
- the path where to navigate in the menu.
public static javax.swing.JMenuItem navigateToMenuItem(org.eclipse.jubula.rc.common.driver.IRobot robot, javax.swing.JPopupMenu popup, java.lang.String[] path, java.lang.String operator)
robot
- the robotpopup
- the popup menupath
- the path where to navigate in the menu.operator
- operator used for matching
public static javax.swing.JMenuItem navigateToMenuItem(org.eclipse.jubula.rc.common.driver.IRobot robot, javax.swing.JPopupMenu popup, int[] path)
robot
- the robotpopup
- the popup menupath
- the path where to navigate in the menu.
public static void clickMenuItem(org.eclipse.jubula.rc.common.driver.IRobot robot, javax.swing.JMenuItem item)
robot
- the robotitem
- the menu item
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |