com.appperfect.devcommon.script.flexelement
Interface FlexTextArea

All Superinterfaces:
FlexDisplayObject, FlexObject, FlexScrollBase, IScript

public interface FlexTextArea
extends FlexScrollBase

FlexTextArea element can be created using createFlexTextArea API of IScriptEngine interface. The return value is an instance of FlexTextArea interface. Once FlexTextArea is created, you can play events on it.

See Also:
FlexObject, FlexDisplayObject

Method Summary
 boolean input(java.lang.String text)
 To simulate input on flex element
 boolean scroll(int position, int direction, int detail)
 To simulate scroll on flex element
 boolean selectText(int beginIndex, int endIndex)
 To simulate select text on flex element
 boolean type(int keyCode, int keyModifier)
 To simulate type on flex element
 
Methods inherited from interface com.appperfect.devcommon.script.flexelement.FlexScrollBase
mouseScroll
 
Methods inherited from interface com.appperfect.devcommon.script.flexelement.FlexObject
changeFocus, setFocus
 
Methods inherited from interface com.appperfect.devcommon.script.flexelement.FlexDisplayObject
addAttribute, click, mouseMove, setBreakPoint, setIgnored, setImagePath, setThinkTime, setTitle
 
Methods inherited from interface com.appperfect.devcommon.script.IScript
getReasonForFailure, isIgnored, isTaskSuccessful, isTaskTimedOut, setReasonForFailure, setTaskSuccessful, setTaskTimedout, setTimeout
 

Method Detail

input

boolean input(java.lang.String text)
To simulate input on flex element

Parameters:
text - to input
Returns:
true if success, false otherwise

scroll

boolean scroll(int position,
               int direction,
               int detail)
To simulate scroll on flex element

Parameters:
position -
direction - to scroll
detail -
Returns:
true if success, false otherwise

selectText

boolean selectText(int beginIndex,
                   int endIndex)
To simulate select text on flex element

Parameters:
beginIndex - start index of selection
endIndex - end index of selection
Returns:
true if success, false otherwise

type

boolean type(int keyCode,
             int keyModifier)
To simulate type on flex element

Parameters:
keyCode - key code of the key to type
keyModifier - key modifier selected viz SHIFT, CTRL, ALT etc
Returns:
true if success, false otherwise


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.