|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jubula.rc.swing.swing.implclasses.AbstractSwingImplClass
org.eclipse.jubula.rc.swing.swing.implclasses.JMenuBarImplClass
public class JMenuBarImplClass
Implementation class for JMenuBar
.
Field Summary |
---|
Fields inherited from class org.eclipse.jubula.rc.swing.swing.implclasses.AbstractSwingImplClass |
---|
INDEX_LIST_SEP_CHAR, POS_UNI_PERCENT, POS_UNIT_PIXEL, RENDERER_FALLBACK_TEXT_GETTER_METHOD_1, RENDERER_FALLBACK_TEXT_GETTER_METHOD_2, VALUE_SEPARATOR |
Constructor Summary | |
---|---|
JMenuBarImplClass()
|
Method Summary | |
---|---|
javax.swing.JComponent |
getComponent()
|
protected java.lang.String |
getText()
Get a String representation of the "text" of the component. |
java.lang.String[] |
getTextArrayFromComponent()
Returns a descriptive text array that represents the given gui component. |
void |
selectMenuItem(java.lang.String[] menuItem,
java.lang.String operator)
Tries to select a menu item in a menu. |
void |
selectMenuItem(java.lang.String menuItem,
java.lang.String operator)
Tries to select a menu item in a menu. |
void |
selectMenuItemByIndexpath(int[] path)
Tries to select a menu item in a menu. |
void |
selectMenuItemByIndexpath(java.lang.String path)
Tries to select a menu item in a menu. |
void |
setComponent(java.lang.Object graphicsComponent)
Set the component the methods this implementation class implements have to work with. |
void |
verifyEnabled(java.lang.String[] menuItem,
java.lang.String operator,
boolean enabled)
Checks if the specified menu item is enabled. |
void |
verifyEnabled(java.lang.String menuItem,
java.lang.String operator,
boolean enabled)
Checks if the specified menu item is enabled. |
void |
verifyEnabledByIndexpath(int[] menuItem,
boolean enabled)
Checks if the specified menu item is enabled. |
void |
verifyEnabledByIndexpath(java.lang.String menuItem,
boolean enabled)
Checks if the specified menu item is enabled. |
void |
verifyExists(java.lang.String[] menuItem,
java.lang.String operator,
boolean exists)
Verifies if the specified menu item exists |
void |
verifyExists(java.lang.String menuItem,
java.lang.String operator,
boolean exists)
Verifies if the specified menu item exists |
void |
verifyExistsByIndexpath(int[] menuItem,
boolean exists)
Verifies if the specified menu item exists |
void |
verifyExistsByIndexpath(java.lang.String menuItem,
boolean exists)
Verifies if the specified menu item exists |
void |
verifySelected(java.lang.String[] menuItem,
java.lang.String operator,
boolean selected)
Checks if the specified menu item is selected. |
void |
verifySelected(java.lang.String menuItem,
java.lang.String operator,
boolean selected)
Checks if the specified menu item is selected. |
void |
verifySelectedByIndexpath(int[] menuItem,
boolean selected)
Checks if the specified menu item is selected. |
void |
verifySelectedByIndexpath(java.lang.String menuItem,
boolean selected)
Checks if the specified menu item is selected. |
void |
waitForComponent(int timeout,
int delay)
implementation for "wait for component" |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMenuBarImplClass()
Method Detail |
---|
public void setComponent(java.lang.Object graphicsComponent)
graphicsComponent
- the component from the AUT control
affects
the AUT.public javax.swing.JComponent getComponent()
getComponent
in class AbstractSwingImplClass
IBaseImplementationClass.setComponent(Object)
public void waitForComponent(int timeout, int delay)
timeout
- the maximum amount of time to wait for the componentdelay
- the time to wait after the component is foundpublic void selectMenuItem(java.lang.String menuItem, java.lang.String operator)
menuItem
- the menu item to selectoperator
- operator used for matchingpublic void selectMenuItem(java.lang.String[] menuItem, java.lang.String operator)
menuItem
- the menu item to selectoperator
- operator used for matchingpublic void selectMenuItemByIndexpath(java.lang.String path)
path
- path to the menu itempublic void selectMenuItemByIndexpath(int[] path)
path
- path to the menu itempublic void verifyExists(java.lang.String menuItem, java.lang.String operator, boolean exists)
menuItem
- the menu item to verifiy againstoperator
- operator used for matchingexists
- should the menu item exist?public void verifyExists(java.lang.String[] menuItem, java.lang.String operator, boolean exists)
menuItem
- the menu item to verify againstoperator
- operator used for matchingexists
- should the menu item exist?public void verifyExistsByIndexpath(java.lang.String menuItem, boolean exists)
menuItem
- the menu item to verifiy againstexists
- should the menu item exist?public void verifyExistsByIndexpath(int[] menuItem, boolean exists)
menuItem
- the menu item to verify againstexists
- should the menu item exist?public void verifyEnabled(java.lang.String menuItem, java.lang.String operator, boolean enabled)
menuItem
- the menu item as a text path to verify againstoperator
- operator used for matchingenabled
- is the specified menu item enabled?public void verifyEnabled(java.lang.String[] menuItem, java.lang.String operator, boolean enabled)
menuItem
- the menu item to verify againstoperator
- operator used for matchingenabled
- is the specified menu item enabled?public void verifyEnabledByIndexpath(java.lang.String menuItem, boolean enabled)
menuItem
- the menu item as a text path to verify againstenabled
- is the specified menu item enabled?public void verifyEnabledByIndexpath(int[] menuItem, boolean enabled)
menuItem
- the menu item to verify againstenabled
- is the specified menu item enabled?public void verifySelected(java.lang.String menuItem, java.lang.String operator, boolean selected)
menuItem
- the menu item to verify againstoperator
- operator used for matchingselected
- is the specified menu item selected?public void verifySelected(java.lang.String[] menuItem, java.lang.String operator, boolean selected)
menuItem
- the menu item to verify againstoperator
- operator used for matchingselected
- is the specified menu item selected?public void verifySelectedByIndexpath(java.lang.String menuItem, boolean selected)
menuItem
- the menu item to verify againstselected
- is the specified menu item selected?public void verifySelectedByIndexpath(int[] menuItem, boolean selected)
menuItem
- the menu item to verify againstselected
- is the specified menu item selected?public java.lang.String[] getTextArrayFromComponent()
protected java.lang.String getText()
AbstractSwingImplClass
getText
in class AbstractSwingImplClass
AbstractSwingImplClass.getText()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |