|
Services Builder for Screens | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.attachmate.nav.engine.ProcessStep | +--com.attachmate.sc.ssa.BaseCustomNavStep
BaseCustomNavStepEx
Custom Steps Only
This class is the base for custom steps. It supplies the helper classes IQAScreen
and
ITaskData
as fields granting the user access to both Screen and Task data.
The developer will need to subclass this abtract class and define the match(), processData() and getTransitionAction()methods to perform the custom actions needed.
NOTE:Since IQAScreen.sendKeys() doesn't have access to the recorded screen metrics, it will not perform at the same level of performance as the normal NavProcedure. It is highly recommended to only write custom steps when the normal NavProcedure does not work in order to maximize performance.
Field Summary |
Fields inherited from class com.attachmate.nav.engine.ProcessStep |
qaScreen, STATE_DATA, STATE_TRANSITION, system, taskData, useNavScreen |
Fields inherited from interface com.attachmate.sc.ssa.IPerformanceTool |
STATUS_DATA_CHANGED, STATUS_EOR, STATUS_FORMAT_CHANGED, STATUS_KBD_UNLOCK, STATUS_MESSAGE_WAITING, STATUS_SCREEN_ERASED, STATUS_SIZE_CHANGED, STATUS_TYPE_CHANGED |
Constructor Summary | |
BaseCustomNavStep()
Deprecated. |
Method Summary | |
abstract java.lang.String |
getTransitionAction()
Deprecated. Called when the step transitions to the next step. |
void |
init(com.attachmate.nav.engine.INavContext context)
Deprecated. Used by the NavEngine to initialize qaScreen and taskData. |
abstract boolean |
isRecognized()
Deprecated. Decides if the current screen matches the recognition rule. |
boolean |
onReadExit(int readFlags,
boolean bTimedOut)
Deprecated. Called while performing IQAScreen.sendKeys to determine if the screen has settled. |
abstract void |
processData()
Deprecated. Called to collect the data from the host screen(s). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BaseCustomNavStep()
Method Detail |
public void init(com.attachmate.nav.engine.INavContext context)
init
in interface com.attachmate.nav.engine.ICustomNavStep
context
- the current screen context.public abstract boolean isRecognized() throws com.attachmate.nav.engine.NavException
The developer should throw UserCustomStepException to report problems to the navigation engine.
isRecognized
in interface com.attachmate.nav.engine.ICustomNavStep
com.attachmate.nav.engine.NavException
UserCustomStepException
public abstract void processData() throws com.attachmate.nav.engine.NavException
The developer should throw UserCustomStepException to report problems to the navigation engine.
processData
in interface com.attachmate.nav.engine.ICustomNavStep
com.attachmate.nav.engine.NavException
UserCustomStepException
public abstract java.lang.String getTransitionAction() throws com.attachmate.nav.engine.NavException
The developer should throw UserCustomStepException to report problems to the navigation engine.
getTransitionAction
in interface com.attachmate.nav.engine.ICustomNavStep
com.attachmate.nav.engine.NavException
UserCustomStepException
public boolean onReadExit(int readFlags, boolean bTimedOut) throws com.attachmate.nav.engine.NavException
IQAScreen.sendKeys
to determine if the screen has settled.
The default implementation examines the current cursor position and if it doesn't match the cursor coordinates
set with the IQAScreen.setWaitForCursor
.
(optional) This advanced feature was provided to allow developers to extend this function to enhance
performance and reliablilty by replacing settle time as the default mechanism for screen transitions using
sendKeys
.
The developer should throw UserCustomStepException to report problems to the navigation engine.
onReadExit
in interface IPerformanceTool
readFlags
- the read return code.bTimedOut
- if true
the previous read timed out
com.attachmate.nav.engine.NavException
UserCustomStepException
,
DefaultController.read()
|
Services Builder for Screens | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |