Class JPopupMenuOperator
java.lang.Object
org.netbeans.jemmy.operators.Operator
org.netbeans.jemmy.operators.ComponentOperator
org.netbeans.jemmy.operators.ContainerOperator
org.netbeans.jemmy.operators.JComponentOperator
org.netbeans.jemmy.operators.JPopupMenuOperator
- All Implemented Interfaces:
Outputable, Timeoutable
Timeouts used:
JMenuOperator.WaitBeforePopupTimeout - time to sleep before popup expanding
JMenuOperator.WaitPopupTimeout - time to wait popup displayed
ComponentOperator.WaitComponentTimeout - time to wait button displayed
WindowWaiter.WaitWindowTimeout - time to wait popup window displayed
WindowWaiter.AfterWindowTimeout - time to sleep after popup window has been dispayed
.
- Author:
- Alexandre Iline (alexandre.iline@sun.com)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classChecks component type.static classAllwos to find a window containing JPopupMenu.Nested classes/interfaces inherited from class JComponentOperator
JComponentOperator.JComponentByTipFinder, JComponentOperator.JComponentFinderNested classes/interfaces inherited from class ContainerOperator
ContainerOperator.ContainerFinderNested classes/interfaces inherited from class Operator
Operator.ComponentVisualizer, Operator.DefaultPathParser, Operator.DefaultStringComparator, Operator.Finder, Operator.MapAction, Operator.MapBooleanAction, Operator.MapByteAction, Operator.MapCharacterAction, Operator.MapDoubleAction, Operator.MapFloatAction, Operator.MapIntegerAction, Operator.MapLongAction, Operator.MapVoidAction, Operator.NoBlockingAction, Operator.PathParser, Operator.StringComparator -
Field Summary
FieldsFields inherited from class JComponentOperator
A11Y_DATA, A11Y_DESCRIPTION_DPROP, A11Y_NAME_DPROP, TOOLTIP_TEXT_DPROPFields inherited from class ComponentOperator
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROPFields inherited from class Operator
CLASS_DPROP, TO_STRING_DPROP -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.JPopupMenuOperator(JPopupMenu popup) Constructor.Constructor.JPopupMenuOperator(ContainerOperator cont, ComponentChooser chooser) Constructs a JPopupMenuOperator object.JPopupMenuOperator(ContainerOperator cont, ComponentChooser chooser, int index) Constructs a JPopupMenuOperator object.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionMapsJPopupMenu.add(String)through queueMapsJPopupMenu.add(Action)through queueMapsJPopupMenu.add(JMenuItem)through queuevoidaddPopupMenuListener(PopupMenuListener popupMenuListener) MapsJPopupMenu.addPopupMenuListener(PopupMenuListener)through queuevoidMapsJPopupMenu.addSeparator()through queuestatic JPopupMenuCalls popup by clicking component center.static JPopupMenuCalls popup by clicking component center.static JPopupMenuCalls popup by clicking on (x, y) point in component.static JPopupMenuCalls popup by clicking on (x, y) point in component.static JPopupMenucallPopup(ComponentOperator oper, int x, int y) Calls popup by clicking on (x, y) point in component.static JPopupMenucallPopup(ComponentOperator oper, int x, int y, int mouseButton) Calls popup by clicking on (x, y) point in component.voidcopyEnvironment(Operator anotherOperator) Copies all environment (output, timeouts, visualizer) from another operator.static JPopupMenufindJPopupMenu(Container cont, ComponentChooser chooser) Searches JPopupMenu in container.static JPopupMenufindJPopupMenu(Container cont, ComponentChooser chooser, int index) Searches JPopupMenu in container.static WindowfindJPopupWindow(ComponentChooser chooser) Searches for a window which contains JPopupMenu.intgetComponentIndex(Component component) MapsJPopupMenu.getComponentIndex(Component)through queuegetDump()Returns information about component.MapsJPopupMenu.getInvoker()through queuegetLabel()MapsJPopupMenu.getLabel()through queueMapsJPopupMenu.getMargin()through queueReturns print output streams or writers.MapsJPopupMenu.getSelectionModel()through queueMapsJPopupMenu.getSubElements()through queueReturn current timeouts.getUI()MapsJPopupMenu.getUI()through queuevoidMapsJPopupMenu.insert(Component, int)through queuevoidMapsJPopupMenu.insert(Action, int)through queuebooleanMapsJPopupMenu.isBorderPainted()through queuebooleanMapsJPopupMenu.isLightWeightPopupEnabled()through queuevoidmenuSelectionChanged(boolean b) MapsJPopupMenu.menuSelectionChanged(boolean)through queuevoidpack()MapsJPopupMenu.pack()through queuevoidprocessKeyEvent(KeyEvent keyEvent, MenuElement[] menuElement, MenuSelectionManager menuSelectionManager) MapsJPopupMenu.processKeyEvent(KeyEvent, MenuElement[], MenuSelectionManager)through queuevoidprocessMouseEvent(MouseEvent mouseEvent, MenuElement[] menuElement, MenuSelectionManager menuSelectionManager) MapsJPopupMenu.processMouseEvent(MouseEvent, MenuElement[], MenuSelectionManager)through queuePushes menu.Pushes menu.Deprecated.Use pushMenu(String[]) or pushMenu(String[], StringComparator)pushMenu(String[] names, Operator.StringComparator comparator) Pushes menu.Pushes menu.Deprecated.Use pushMenu(String, String) or pushMenu(String, String, StringComparator)pushMenu(String path, String delim, Operator.StringComparator comparator) Pushes menu.pushMenu(String path, Operator.StringComparator comparator) Pushes menu.pushMenu(ComponentChooser[] choosers) Pushes menu.voidpushMenuNoBlock(String path) ExecutespushMenu(path)in a separate thread.voidpushMenuNoBlock(String[] names) ExecutespushMenu(names)in a separate thread.voidpushMenuNoBlock(String[] names, boolean ce, boolean ccs) Deprecated.Use pushMenuNoBlock(String[]) or pushMenuNoBlock(String[], StringComparator)voidpushMenuNoBlock(String[] names, Operator.StringComparator comparator) ExecutespushMenu(names, ce, ccs)in a separate thread.voidpushMenuNoBlock(String path, String delim) ExecutespushMenu(path, delim)in a separate thread.voidpushMenuNoBlock(String path, String delim, boolean ce, boolean ccs) Deprecated.Use pushMenuNoBlock(String, String) or pushMenuNoBlock(String, String, StringComparator)voidpushMenuNoBlock(String path, String delim, Operator.StringComparator comparator) ExecutespushMenu(names, delim, comparator)in a separate thread.voidpushMenuNoBlock(String path, Operator.StringComparator comparator) ExecutespushMenu(names, comparator)in a separate thread.voidpushMenuNoBlock(ComponentChooser[] choosers) ExecutespushMenu(choosers)in a separate thread.voidremovePopupMenuListener(PopupMenuListener popupMenuListener) MapsJPopupMenu.removePopupMenuListener(PopupMenuListener)through queuevoidsetBorderPainted(boolean b) MapsJPopupMenu.setBorderPainted(boolean)through queuevoidsetInvoker(Component component) MapsJPopupMenu.setInvoker(Component)through queuevoidMapsJPopupMenu.setLabel(String)through queuevoidsetLightWeightPopupEnabled(boolean b) MapsJPopupMenu.setLightWeightPopupEnabled(boolean)through queuevoid/////////////////////////////////////////////////////voidsetPopupSize(int i, int i1) MapsJPopupMenu.setPopupSize(int, int)through queuevoidsetPopupSize(Dimension dimension) MapsJPopupMenu.setPopupSize(Dimension)through queuevoidsetSelected(Component component) MapsJPopupMenu.setSelected(Component)through queuevoidsetSelectionModel(SingleSelectionModel singleSelectionModel) MapsJPopupMenu.setSelectionModel(SingleSelectionModel)through queuevoidsetTimeouts(Timeouts times) Defines current timeouts.voidsetUI(PopupMenuUI popupMenuUI) MapsJPopupMenu.setUI(PopupMenuUI)through queuevoidMapsJPopupMenu.show(Component, int, int)through queueshowMenuItem(String path) Expands all menus to show menu item specified by apathparameter.showMenuItem(String[] path) Expands all menus to show menu item specified by apathparameter.showMenuItem(String[] path, Operator.StringComparator comparator) Expends all menus to show menu item specified by apathparameter.showMenuItem(String path, String delim) Expands all menus to show menu item specified by apathparameter.showMenuItem(String path, String delim, Operator.StringComparator comparator) Expands all menus to show menu item specified by apathparameter.showMenuItem(String path, Operator.StringComparator comparator) Expands all menus to show menu item specified by apathparameter.showMenuItem(ComponentChooser[] choosers) showMenuItems(String path) Shows submenu of menu specified by apathparameter.showMenuItems(String[] path) Shows submenu of menu specified by apathparameter.showMenuItems(String[] path, Operator.StringComparator comparator) Shows submenu of menu specified by apathparameter.showMenuItems(String path, String delim) Shows submenu of menu specified by apathparameter.showMenuItems(String path, String delim, Operator.StringComparator comparator) Shows submenu of menu specified by apathparameter.showMenuItems(String path, Operator.StringComparator comparator) Shows submenu of menu specified by apathparameter.showMenuItems(ComponentChooser[] choosers) static JPopupMenuwaitJPopupMenu(Container cont, ComponentChooser chooser) Waits JPopupMenu in container.static JPopupMenuwaitJPopupMenu(Container cont, ComponentChooser chooser, int index) Waits JPopupMenu in container.static JPopupMenuOperatorwaitJPopupMenu(String menuItemText) Waits popup containing menu item withmenuItemTexttext.static JPopupMenuOperatorwaitJPopupMenu(ComponentChooser popupChooser) Waits popup defined bypopupChooserparameter.static WindowwaitJPopupWindow(ComponentChooser chooser) Waits for a window which contains JPopupMenu.Methods inherited from class JComponentOperator
addAncestorListener, addVetoableChangeListener, computeVisibleRect, createToolTip, findJComponent, findJComponent, findJComponent, findJComponent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getActionForKeyStroke, getAutoscrolls, getBorder, getCenterXForClick, getCenterYForClick, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getInsets, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVisibleRect, getWindowContainerOperator, grabFocus, isFocusCycleRoot, isManagingFocus, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, requestDefaultFocus, resetKeyboardActions, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, showToolTip, unregisterKeyboardAction, updateUI, waitJComponent, waitJComponent, waitJComponent, waitJComponent, waitToolTipMethods inherited from class ContainerOperator
add, add, add, add, add, addContainerListener, createSubOperator, createSubOperator, findComponentAt, findComponentAt, findContainer, findContainer, findContainer, findContainer, findContainerUnder, findContainerUnder, findSubComponent, findSubComponent, getComponent, getComponentCount, getComponents, getInsets, getLayout, isAncestorOf, paintComponents, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, waitContainer, waitContainer, waitContainer, waitContainer, waitSubComponent, waitSubComponentMethods inherited from class ComponentOperator
activateWindow, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, checkImage, checkImage, clickForPopup, clickForPopup, clickForPopup, clickForPopup, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, contains, contains, createImage, createImage, dispatchEvent, doLayout, dragMouse, dragMouse, dragMouse, dragNDrop, dragNDrop, dragNDrop, enableInputMethods, enterMouse, exitMouse, findComponent, findComponent, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getCenterX, getCenterY, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getContainer, getContainers, getCursor, getDropTarget, getEventDispatcher, getFocus, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getSize, getSource, getToolkit, getTreeLock, getWidth, getWindow, getX, getY, hasFocus, imageUpdate, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, list, list, list, list, list, makeComponentVisible, moveMouse, paint, paintAll, prepareImage, prepareImage, pressKey, pressKey, pressMouse, pressMouse, print, printAll, pushKey, pushKey, releaseKey, releaseKey, releaseMouse, releaseMouse, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, transferFocus, typeKey, typeKey, typeKey, update, validate, waitComponent, waitComponent, waitComponent, waitComponent, waitComponentEnabled, waitComponentShowing, waitComponentVisible, waitHasFocus, wtComponentEnabledMethods inherited from class Operator
addOperatorPackage, addToDump, addToDump, createOperator, getCharBindingMap, getCharKey, getCharModifiers, getCharsKeys, getCharsKeys, getCharsModifiers, getCharsModifiers, getComparator, getDefaultComponentVisualizer, getDefaultMouseButton, getDefaultPathParser, getDefaultStringComparator, getDefaultVerification, getEnvironmentOperator, getParentPath, getParentPath, getPathParser, getPopupMouseButton, getProperties, getQueueTool, getVerification, getVisualizer, isCaptionEqual, isCaptionEqual, isCaptionEqual, lockQueue, parseString, parseString, printDump, produceNoBlocking, produceNoBlocking, produceTimeRestricted, produceTimeRestricted, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, setCharBindingMap, setComparator, setDefaultComponentVisualizer, setDefaultPathParser, setDefaultStringComparator, setDefaultVerification, setPathParser, setProperties, setVerification, setVisualizer, toStringSource, unlockAndThrow, unlockQueue, waitState
-
Field Details
-
LABEL_DPROP
-
-
Constructor Details
-
JPopupMenuOperator
-
JPopupMenuOperator
Constructs a JPopupMenuOperator object.- Parameters:
cont- a containerchooser- a component chooser specifying searching criteria.index- an index between appropriate ones.
-
JPopupMenuOperator
Constructs a JPopupMenuOperator object.- Parameters:
cont- a containerchooser- a component chooser specifying searching criteria.
-
JPopupMenuOperator
Constructor. Waits component first. Constructor can be used in complicated cases when output or timeouts should differ from default.- Parameters:
env- an operator to copy environment from.- Throws:
TimeoutExpiredException
-
JPopupMenuOperator
Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- a container- Throws:
TimeoutExpiredException
-
JPopupMenuOperator
-
-
Method Details
-
findJPopupMenu
Searches JPopupMenu in container.- Parameters:
cont- Container to search component in.chooser- a component chooser specifying searching criteria.index- Ordinal component index.- Returns:
- JPopupMenu instance or null if component was not found.
-
findJPopupMenu
Searches JPopupMenu in container.- Parameters:
cont- Container to search component in.chooser- a component chooser specifying searching criteria.- Returns:
- JPopupMenu instance or null if component was not found.
-
waitJPopupMenu
Waits JPopupMenu in container.- Parameters:
cont- Container to search component in.chooser- a component chooser specifying searching criteria.index- Ordinal component index.- Returns:
- JPopupMenu instance.
- Throws:
TimeoutExpiredException
-
waitJPopupMenu
Waits JPopupMenu in container.- Parameters:
cont- Container to search component in.chooser- a component chooser specifying searching criteria.- Returns:
- JPopupMenu instance.
- Throws:
TimeoutExpiredException
-
findJPopupWindow
Searches for a window which contains JPopupMenu.- Parameters:
chooser- a component chooser specifying criteria for JPopupMenu.- Returns:
- a window containing JPopupMenu.
-
waitJPopupWindow
Waits for a window which contains JPopupMenu.- Parameters:
chooser- a component chooser specifying criteria for JPopupMenu.- Returns:
- a window containing JPopupMenu.
- Throws:
TimeoutExpiredException
-
waitJPopupMenu
Waits popup defined bypopupChooserparameter.- Parameters:
popupChooser- a component chooser specifying criteria for JPopupMenu.- Returns:
- a JPopupMenu fitting the criteria.
-
waitJPopupMenu
Waits popup containing menu item withmenuItemTexttext.- Parameters:
menuItemText- a text of a menu item which supposed to be displayed inside the popup.- Returns:
- a JPopupMenu fitting the criteria.
-
callPopup
Calls popup by clicking on (x, y) point in component.- Parameters:
oper- Component operator to call popup on.x- X coordinate of click point in the component coordinate system.y- Y coordinate of click point in the component coordinate system.mouseButton- Mouse button mask to call popup.- Returns:
- an opened JPopupMenu
- Throws:
TimeoutExpiredException
-
callPopup
Calls popup by clicking on (x, y) point in component.- Parameters:
oper- Component operator to call popup on.x- X coordinate of click point in the component coordinate system.y- Y coordinate of click point in the component coordinate system.- Returns:
- an opened JPopupMenu
- Throws:
TimeoutExpiredException- See Also:
-
callPopup
Calls popup by clicking on (x, y) point in component.- Parameters:
comp- Component to call popup on.x- X coordinate of click point in the component coordinate system.y- Y coordinate of click point in the component coordinate system.mouseButton- Mouse button mask to call popup.- Returns:
- an opened JPopupMenu
- Throws:
TimeoutExpiredException
-
callPopup
Calls popup by clicking on (x, y) point in component.- Parameters:
comp- Component to call popup on.x- X coordinate of click point in the component coordinate system.y- Y coordinate of click point in the component coordinate system.- Returns:
- an opened JPopupMenu
- Throws:
TimeoutExpiredException- See Also:
-
callPopup
Calls popup by clicking component center.- Parameters:
comp- Component to call popup on.mouseButton- Mouse button mask to call popup.- Returns:
- an opened JPopupMenu
- Throws:
TimeoutExpiredException
-
callPopup
Calls popup by clicking component center.- Parameters:
comp- Component to call popup on.- Returns:
- an opened JPopupMenu
- Throws:
TimeoutExpiredException- See Also:
-
setOutput
Description copied from class:ComponentOperator/////////////////////////////////////////////////////- Specified by:
setOutputin interfaceOutputable- Overrides:
setOutputin classJComponentOperator- Parameters:
out- Identify the streams or writers used for print output.- See Also:
-
getOutput
Description copied from interface:OutputableReturns print output streams or writers.- Specified by:
getOutputin interfaceOutputable- Overrides:
getOutputin classJComponentOperator- Returns:
- an object that contains references to objects for printing to output and err streams.
- See Also:
-
setTimeouts
Description copied from interface:TimeoutableDefines current timeouts.- Specified by:
setTimeoutsin interfaceTimeoutable- Overrides:
setTimeoutsin classJComponentOperator- Parameters:
times- A collection of timeout assignments.- See Also:
-
getTimeouts
Description copied from interface:TimeoutableReturn current timeouts.- Specified by:
getTimeoutsin interfaceTimeoutable- Overrides:
getTimeoutsin classJComponentOperator- Returns:
- the collection of current timeout assignments.
- See Also:
-
copyEnvironment
Description copied from class:OperatorCopies all environment (output, timeouts, visualizer) from another operator.- Overrides:
copyEnvironmentin classComponentOperator- Parameters:
anotherOperator- an operator to copy the environment to.
-
pushMenu
Pushes menu.- Parameters:
choosers- Array of choosers to find menuItems to push.- Returns:
- Last pushed JMenuItem.
- Throws:
TimeoutExpiredException
-
pushMenuNoBlock
ExecutespushMenu(choosers)in a separate thread.- Parameters:
choosers- Array of choosers to find menuItems to push.- See Also:
-
pushMenu
Pushes menu.- Parameters:
names- an array of menu texts.comparator- a string comparision algorithm- Returns:
- Last pushed JMenuItem.
- Throws:
TimeoutExpiredException
-
pushMenu
Deprecated.Use pushMenu(String[]) or pushMenu(String[], StringComparator)Pushes menu.- Parameters:
names- Menu items texts.ce- Compare text exactly.ccs- Compare text case sensitively.- Returns:
- Last pushed JMenuItem.
- Throws:
TimeoutExpiredException- See Also:
-
pushMenuNoBlock
ExecutespushMenu(names, ce, ccs)in a separate thread.- Parameters:
names- an array of menu texts.comparator- a string comparision algorithm
-
pushMenuNoBlock
Deprecated.Use pushMenuNoBlock(String[]) or pushMenuNoBlock(String[], StringComparator)ExecutespushMenu(names, ce, ccs)in a separate thread.- Parameters:
names- Menu items texts.ce- Compare text exactly.ccs- Compare text case sensitively.- See Also:
-
pushMenu
Pushes menu.- Parameters:
names- Menu items texts.- Returns:
- Last pushed JMenuItem.
- Throws:
TimeoutExpiredException- See Also:
-
pushMenuNoBlock
ExecutespushMenu(names)in a separate thread.- Parameters:
names- Menu items texts.- See Also:
-
pushMenu
Pushes menu.- Parameters:
path- a menu path.delim- a path delimiter.comparator- a string comparision algorithm- Returns:
- Last pushed JMenuItem.
- Throws:
TimeoutExpiredException
-
pushMenu
Pushes menu. Uses PathParser assigned to this operator.- Parameters:
path- a menu path.comparator- a string comparision algorithm- Returns:
- Last pushed JMenuItem.
- Throws:
TimeoutExpiredException
-
pushMenu
Deprecated.Use pushMenu(String, String) or pushMenu(String, String, StringComparator)Pushes menu.- Parameters:
path- String menupath representation ("File/New", for example).delim- String menupath divider ("/").ce- Compare text exactly.ccs- Compare text case sensitively.- Returns:
- Last pushed JMenuItem.
- Throws:
TimeoutExpiredException- See Also:
-
pushMenuNoBlock
ExecutespushMenu(names, delim, comparator)in a separate thread.- Parameters:
path- a menu path.delim- a path delimiter.comparator- a string comparision algorithm
-
pushMenuNoBlock
ExecutespushMenu(names, comparator)in a separate thread. Uses PathParser assigned to this operator.- Parameters:
path- a menu path.comparator- a string comparision algorithm
-
pushMenuNoBlock
Deprecated.Use pushMenuNoBlock(String, String) or pushMenuNoBlock(String, String, StringComparator)ExecutespushMenu(path, delim, ce, ccs)in a separate thread.- Parameters:
path- String menupath representation ("File/New", for example).delim- String menupath divider ("/").ce- Compare text exactly.ccs- Compare text case sensitively.- See Also:
-
pushMenu
Pushes menu.- Parameters:
path- String menupath representation ("File/New", for example).delim- String menupath divider ("/").- Returns:
- Last pushed JMenuItem.
- Throws:
TimeoutExpiredException
-
pushMenu
Pushes menu. Uses PathParser assigned to this operator.- Parameters:
path- String menupath representation ("File/New", for example).- Returns:
- Last pushed JMenuItem.
- Throws:
TimeoutExpiredException
-
pushMenuNoBlock
-
pushMenuNoBlock
ExecutespushMenu(path)in a separate thread.- Parameters:
path- String menupath representation ("File/New", for example).
-
showMenuItems
-
showMenuItems
Shows submenu of menu specified by apathparameter.- Parameters:
path- an array of menu texts.comparator- a string comparision algorithm- Returns:
- an array of operators created tor items from the submenu.
- Throws:
TimeoutExpiredException
-
showMenuItems
Shows submenu of menu specified by apathparameter. Uses StringComparator assigned to the operator.- Parameters:
path- an array of menu texts.- Returns:
- an array of operators created tor items from the submenu.
- Throws:
TimeoutExpiredException
-
showMenuItems
public JMenuItemOperator[] showMenuItems(String path, String delim, Operator.StringComparator comparator) Shows submenu of menu specified by apathparameter.- Parameters:
path- a string identifying the menu path.delim- a path delimiter.comparator- a string comparision algorithm- Returns:
- an array of operators created tor items from the submenu.
- Throws:
TimeoutExpiredException
-
showMenuItems
Shows submenu of menu specified by apathparameter. Uses PathParser assigned to this operator.- Parameters:
path- a string identifying the menu path.comparator- a string comparision algorithm- Returns:
- an array of operators created tor items from the submenu.
- Throws:
TimeoutExpiredException
-
showMenuItems
Shows submenu of menu specified by apathparameter. Uses StringComparator assigned to the operator.- Parameters:
path- a string identifying the menu path.delim- a path delimiter.- Returns:
- an array of operators created tor items from the submenu.
- Throws:
TimeoutExpiredException
-
showMenuItems
Shows submenu of menu specified by apathparameter. Uses PathParser assigned to this operator. Uses StringComparator assigned to the operator.- Parameters:
path- a string identifying the menu path.- Returns:
- an array of operators created tor items from the submenu.
- Throws:
TimeoutExpiredException
-
showMenuItem
-
showMenuItem
Expends all menus to show menu item specified by apathparameter.- Parameters:
path- an array of menu texts.comparator- a string comparision algorithm- Returns:
- an operator for the last menu item in path.
- Throws:
TimeoutExpiredException
-
showMenuItem
Expands all menus to show menu item specified by apathparameter.- Parameters:
path- an array of menu texts.- Returns:
- an operator for the last menu item in path.
- Throws:
TimeoutExpiredException
-
showMenuItem
public JMenuItemOperator showMenuItem(String path, String delim, Operator.StringComparator comparator) Expands all menus to show menu item specified by apathparameter.- Parameters:
path- a string identifying the menu path.delim- a path delimiter.comparator- a string comparision algorithm- Returns:
- an operator for the last menu item in path.
- Throws:
TimeoutExpiredException
-
showMenuItem
Expands all menus to show menu item specified by apathparameter. Uses PathParser assigned to this operator.- Parameters:
path- a string identifying the menu path.comparator- a string comparision algorithm- Returns:
- an operator for the last menu item in path.
- Throws:
TimeoutExpiredException
-
showMenuItem
Expands all menus to show menu item specified by apathparameter. Uses StringComparator assigned to the operator.- Parameters:
path- a string identifying the menu path.delim- a path delimiter.- Returns:
- an operator for the last menu item in path.
- Throws:
TimeoutExpiredException
-
showMenuItem
Expands all menus to show menu item specified by apathparameter. Uses PathParser assigned to this operator. Uses StringComparator assigned to the operator.- Parameters:
path- a string identifying the menu path.- Returns:
- an array of operators created tor items from the submenu.
- Throws:
TimeoutExpiredException
-
getDump
Description copied from class:ComponentOperatorReturns information about component.- Overrides:
getDumpin classJComponentOperator- Returns:
- a Hashtable containing name-value pairs.
-
add
-
add
-
add
-
addPopupMenuListener
MapsJPopupMenu.addPopupMenuListener(PopupMenuListener)through queue -
addSeparator
public void addSeparator()MapsJPopupMenu.addSeparator()through queue -
getComponentIndex
MapsJPopupMenu.getComponentIndex(Component)through queue -
getInvoker
MapsJPopupMenu.getInvoker()through queue -
getLabel
MapsJPopupMenu.getLabel()through queue -
getMargin
MapsJPopupMenu.getMargin()through queue -
getSelectionModel
MapsJPopupMenu.getSelectionModel()through queue -
getSubElements
MapsJPopupMenu.getSubElements()through queue -
getUI
MapsJPopupMenu.getUI()through queue -
insert
MapsJPopupMenu.insert(Component, int)through queue -
insert
MapsJPopupMenu.insert(Action, int)through queue -
isBorderPainted
public boolean isBorderPainted()MapsJPopupMenu.isBorderPainted()through queue -
isLightWeightPopupEnabled
public boolean isLightWeightPopupEnabled()MapsJPopupMenu.isLightWeightPopupEnabled()through queue -
pack
public void pack()MapsJPopupMenu.pack()through queue -
processKeyEvent
public void processKeyEvent(KeyEvent keyEvent, MenuElement[] menuElement, MenuSelectionManager menuSelectionManager) MapsJPopupMenu.processKeyEvent(KeyEvent, MenuElement[], MenuSelectionManager)through queue -
processMouseEvent
public void processMouseEvent(MouseEvent mouseEvent, MenuElement[] menuElement, MenuSelectionManager menuSelectionManager) MapsJPopupMenu.processMouseEvent(MouseEvent, MenuElement[], MenuSelectionManager)through queue -
removePopupMenuListener
MapsJPopupMenu.removePopupMenuListener(PopupMenuListener)through queue -
setBorderPainted
public void setBorderPainted(boolean b) MapsJPopupMenu.setBorderPainted(boolean)through queue -
setInvoker
MapsJPopupMenu.setInvoker(Component)through queue -
setLabel
MapsJPopupMenu.setLabel(String)through queue -
setLightWeightPopupEnabled
public void setLightWeightPopupEnabled(boolean b) MapsJPopupMenu.setLightWeightPopupEnabled(boolean)through queue -
setPopupSize
public void setPopupSize(int i, int i1) MapsJPopupMenu.setPopupSize(int, int)through queue -
setPopupSize
MapsJPopupMenu.setPopupSize(Dimension)through queue -
setSelected
MapsJPopupMenu.setSelected(Component)through queue -
setSelectionModel
MapsJPopupMenu.setSelectionModel(SingleSelectionModel)through queue -
setUI
MapsJPopupMenu.setUI(PopupMenuUI)through queue -
show
MapsJPopupMenu.show(Component, int, int)through queue
-