public class WPFMenuItem extends WPFHeaderedItemsControl
Modifier | Constructor and Description |
---|---|
protected |
WPFMenuItem(JtfObjectHandle handle,
Desktop desktop)
Creates a new WPFMenuItem with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
check()
Checks the menu item.
|
void |
closeSubmenu()
Closes the submenu if available.
|
MenuItemRole |
getRole()
Gets a value that indicates the role of a MenuItem.
|
boolean |
hasSubmenu()
Gets whether a menu item has a submenu.
|
boolean |
isChecked()
Gets a value that indicates whether the MenuItem is checked.
|
boolean |
isPressed()
Gets a value that indicates whether a MenuItem is pressed.
|
boolean |
isStaysOpenOnClick()
Gets a value that indicates that the submenu in which this MenuItem is located should not close when this item is clicked.
|
boolean |
isSubmenuOpen()
Gets a value that indicates whether the submenu of the MenuItem is open.
|
void |
openSubmenu()
Opens the submenu if available.
|
void |
select()
Selects the menu item.
|
void |
uncheck()
Unchecks the menu item.
|
getItems, getItemTexts, hasItems, isTextSearchEnabled
getFontFamily, getFontSize, getTabIndex, isTabStop
getActualHeight, getActualWidth, getMaximumScrollPosition, getName, getScrollPosition, pointFromScreen, pointToScreen, scroll, scrollToPosition
bringIntoView, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getToolTip, isEnabled, isFocused, mouseMove, mouseMove, openContextMenu, openContextMenu, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setFocus, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getText, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected WPFMenuItem(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the WPFMenuItemdesktop
- the desktop on which this object livespublic void check()
public void closeSubmenu()
public void openSubmenu()
public void select()
public void uncheck()
public boolean hasSubmenu()
public boolean isChecked()
public boolean isPressed()
public boolean isSubmenuOpen()
public MenuItemRole getRole()
public boolean isStaysOpenOnClick()
Copyright 2009-2012 Micro Focus. All Rights Reserved.