|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jubula.rc.common.implclasses.AbstractApplicationImplClass
org.eclipse.jubula.rc.swing.swing.implclasses.SwingApplicationImplClass
public class SwingApplicationImplClass
Implementation class for general application-wide operations. The class is
mapped to a dummy component
GraphicApplication
.
Field Summary |
---|
Fields inherited from class org.eclipse.jubula.rc.common.implclasses.AbstractApplicationImplClass |
---|
OVERWRITE, RENAME |
Constructor Summary | |
---|---|
SwingApplicationImplClass()
|
Method Summary | |
---|---|
void |
gdActivate(java.lang.String method)
activate the AUT |
void |
gdCheckExistenceOfWindow(java.lang.String title,
java.lang.String operator,
boolean exists)
Checks for the existence of a window with the given title |
void |
gdClickDirect(int count,
int button,
int xPos,
java.lang.String xUnits,
int yPos,
java.lang.String yUnits)
clicks into the active window. |
void |
gdInputText(java.lang.String text)
|
void |
gdKeyStroke(java.lang.String modifierSpec,
java.lang.String keySpec)
perform a keystroke specified according string representation of a keystroke , |
void |
gdKeyType(int keyCode)
Just a server side method, not useable as action. |
void |
gdReplaceText(java.lang.String text)
Deprecated. Removed without substitution: Testcases with this action are fragile, because this action assumes the availabality of a text component. Any other case breaks the test. |
void |
gdToggle(int key,
boolean activated)
Just a server side method, not useable as action. |
void |
gdWaitForWindow(java.lang.String title,
java.lang.String operator,
int pTimeout,
int delay)
Waits timeMillSec if the application opens a window
with the given title. |
void |
gdWaitForWindowActivation(java.lang.String title,
java.lang.String operator,
int pTimeout,
int delay)
Waits timeMillSec if the application activates a window
with the given title. |
void |
gdWaitForWindowToClose(java.lang.String title,
java.lang.String operator,
int pTimeout,
int delay)
Waits timeMillSec if the application closes (or hides)
a window with the given title. |
java.awt.Rectangle |
getActiveWindowBounds()
|
int |
getKeyCode(java.lang.String keyCodeName)
|
protected org.eclipse.jubula.rc.common.driver.IRobot |
getRobot()
|
java.lang.String[] |
getTextArrayFromComponent()
Returns a descriptive text array that represents the given gui component. |
void |
highLight(java.awt.Component component,
java.awt.Color border)
High light the given component, called during object mapping |
void |
lowLight(java.awt.Component component)
Low light the given component, called during object mapping |
Methods inherited from class org.eclipse.jubula.rc.common.implclasses.AbstractApplicationImplClass |
---|
gdCheckStringValues, gdCheckValues, gdCopyToClipboard, gdExecuteExternalCommand, gdManualTestStep, gdNativeInputText, gdNativeKeyStroke, gdPause, gdReadTimer, gdRestart, gdSetValue, gdStartTimer, gdTakeScreenshot, gdTakeScreenshotOfActiveWindow, gdWait, setComponent, takeScreenshot |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jubula.rc.common.implclasses.IBaseImplementationClass |
---|
setComponent |
Constructor Detail |
---|
public SwingApplicationImplClass()
Method Detail |
---|
protected org.eclipse.jubula.rc.common.driver.IRobot getRobot()
getRobot
in class org.eclipse.jubula.rc.common.implclasses.AbstractApplicationImplClass
public void highLight(java.awt.Component component, java.awt.Color border)
highLight
in interface IImplementationClass
component
- the component to high lightborder
- the color we want to highlight withpublic void lowLight(java.awt.Component component)
lowLight
in interface IImplementationClass
component
- the component to remove the 'hight light'public void gdKeyStroke(java.lang.String modifierSpec, java.lang.String keySpec)
modifierSpec
- the string representation of the modifierskeySpec
- the string representation of the keypublic void gdCheckExistenceOfWindow(java.lang.String title, java.lang.String operator, boolean exists)
title
- the titleoperator
- the comparing operatorexists
- True
if the window is expected to exist and be
visible, otherwise false
.public void gdWaitForWindow(java.lang.String title, java.lang.String operator, int pTimeout, int delay)
timeMillSec
if the application opens a window
with the given title.
title
- the titleoperator
- the comparing operatorpTimeout
- the time in msdelay
- delay after the window is shownpublic void gdWaitForWindowActivation(java.lang.String title, java.lang.String operator, int pTimeout, int delay)
timeMillSec
if the application activates a window
with the given title.
title
- the titleoperator
- the comparing operatorpTimeout
- the time in msdelay
- delay after the window is activatedpublic void gdWaitForWindowToClose(java.lang.String title, java.lang.String operator, int pTimeout, int delay)
timeMillSec
if the application closes (or hides)
a window with the given title. If no window with the given title can
be found, then it is assumed that the window has already closed.
title
- the titleoperator
- the comparing operatorpTimeout
- the time in msdelay
- delay after the window is closedpublic int getKeyCode(java.lang.String keyCodeName) throws org.eclipse.jubula.rc.common.exception.StepExecutionException
keyCodeName
- The name of a key code, e.g. TAB
for a
tabulator key code
-1
, if the key code name doesn't
exist in the KeyEvent
class
org.eclipse.jubula.rc.common.exception.StepExecutionException
- If the key code name cannot be converted to a key code due to
the reflection callpublic void gdKeyType(int keyCode)
keyCode
- The key codepublic void gdToggle(int key, boolean activated)
key
- to set
numlock Num Lock 1
caplock Caps Lock 2
scolllock Scroll 3activated
- booleanpublic void gdReplaceText(java.lang.String text)
text
into the component. This replaces the shown
content.
text
- the text to type inpublic void gdInputText(java.lang.String text)
text
- text to typepublic void gdActivate(java.lang.String method)
method
- activation methodpublic void gdClickDirect(int count, int button, int xPos, java.lang.String xUnits, int yPos, java.lang.String yUnits) throws org.eclipse.jubula.rc.common.exception.StepExecutionException
count
- amount of clicksbutton
- what mouse button should be usedxPos
- what x positionxUnits
- should x position be pixel or percent valuesyPos
- what y positionyUnits
- should y position be pixel or percent values
org.eclipse.jubula.rc.common.exception.StepExecutionException
- errorpublic java.lang.String[] getTextArrayFromComponent()
getTextArrayFromComponent
in interface org.eclipse.jubula.rc.common.implclasses.IBaseImplementationClass
public java.awt.Rectangle getActiveWindowBounds()
getActiveWindowBounds
in class org.eclipse.jubula.rc.common.implclasses.AbstractApplicationImplClass
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |