org.uispec4j
Class MenuItem
java.lang.Object
org.uispec4j.AbstractUIComponent
org.uispec4j.MenuItem
- All Implemented Interfaces:
- UIComponent
- public class MenuItem
- extends AbstractUIComponent
Wrapper for menu items (commands or sub-menus) such as JMenu, JMenuItem or JPopupMenu.
A given MenuItem can be either a command, or a sub-menu containing other MenuItem
components.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_NAME
public static final String TYPE_NAME
- See Also:
- Constant Field Values
SWING_CLASSES
public static final Class[] SWING_CLASSES
MenuItem
public MenuItem(JMenuItem menu)
MenuItem
public MenuItem(JPopupMenu menu)
getDescriptionTypeName
public String getDescriptionTypeName()
- Description copied from interface:
UIComponent
- Returns the name of the component as it will appear in the XML representation
returned by
UIComponent.getDescription().
getAwtComponent
public Component getAwtComponent()
- Description copied from interface:
UIComponent
- Returns the Java GUI component represented by this object.
click
public void click()
triggerClick
public Trigger triggerClick()
getSubMenu
public MenuItem getSubMenu(String subMenuItem)
- Returns a submenu given its name, or raises an exception if it was not found.
contentEquals
public Assertion contentEquals(String[] expectedNames)
contentEquals
public Assertion contentEquals(String xmlContent)
Copyright © 2004-2007 Design-up. All Rights Reserved.