Method Summary |
|
public static void | addOperatorPackage(String pkgName) Adds package to the list of packages containing operators. |
protected String[] | addToDump(Hashtable table, String title, Object[] items) Adds array of objects to dump hashtable.
Is used for multiple properties such as list items and tree nodes.
Parameters: table - a table to add properties to. Parameters: title - property names prefix. |
protected String[] | addToDump(Hashtable table, String title, Object[][] items) Adds two dimentional array of objects to dump hashtable.
Is used for multiple properties such as table cells.
Parameters: table - a table to add properties to. Parameters: title - property names prefix. |
public void | copyEnvironment(Operator anotherOperator) Copies all environment (output, timeouts,
visualizer) from another operator. |
public static ComponentOperator | createOperator(Component comp) Creates operator for component.
Tries to find class with "operator package"."class name"Operator name,
where "operator package" is a package from operator packages list,
and "class name" is the name of class or one of its superclasses.
Parameters: comp - Component to create operator for. |
public CharBindingMap | getCharBindingMap() Returns CharBindingMap used for keyboard operations. |
public int | getCharKey(char c) Returns key code to be pressed for character typing.
Parameters: c - Character to be typed. |
public int | getCharModifiers(char c) Returns modifiers mask for character typing.
Parameters: c - Character to be typed. |
public int[] | getCharsKeys(char[] c) Returns key codes to by pressed for characters typing.
Parameters: c - Characters to be typed. |
public int[] | getCharsKeys(String s) Returns key codes to by pressed for the string typing.
Parameters: s - String to be typed. |
public int[] | getCharsModifiers(char[] c) Returns modifiers masks for characters typing.
Parameters: c - Characters to be typed. |
public int[] | getCharsModifiers(String s) Returns modifiers masks for the string typing.
Parameters: s - String to be typed. |
public StringComparator | getComparator() Returns object which is used for string comparison. |
public static ComponentVisualizer | getDefaultComponentVisualizer() Returns an object to be used by default to prepare component. |
public static int | getDefaultMouseButton() Returns default mouse button mask. |
public static PathParser | getDefaultPathParser() Returns an object used for parsing of path-like strings. |
public static StringComparator | getDefaultStringComparator() Returns string comparator used to init operators. |
public static boolean | getDefaultVerification() Says weither newly created operators perform operations verifications by default. |
public Hashtable | getDump() Returns information about component. |
public static Operator | getEnvironmentOperator() Returns an operator containing default environment. |
public TestOut | getOutput() |
public String[] | getParentPath(String path) Creates new array which has all elements from
first array, except last element. |
public ComponentChooser[] | getParentPath(ComponentChooser path) |
public PathParser | getPathParser() Returns object which is used for parsing of path-like strings. |
public static int | getPopupMouseButton() Returns mask of mouse button which used to popup expanding. |
public JemmyProperties | getProperties() Returns a JemmyProperty object assigned to this operator. |
public QueueTool | getQueueTool() Returns QueueTool is used to work with queue. |
abstract public Component | getSource() Returns object operator is used for. |
public Timeouts | getTimeouts() |
public boolean | getVerification() Says weither operator performs operation verifications. |
public ComponentVisualizer | getVisualizer() Returns component visualizer. |
public static boolean | isCaptionEqual(String caption, String match, boolean ce, boolean ccs) Compares caption (button text, window title, ...) with a sample text.
Parameters: caption - String to be compared with match. |
public static boolean | isCaptionEqual(String caption, String match, StringComparator comparator) Compares caption (button text, window title, ...) with a sample text.
Parameters: caption - String to be compared with match Parameters: match - Sample to compare with Parameters: comparator - StringComparator instance. |
public boolean | isCaptionEqual(String caption, String match) Compares string using getComparator StringComparator. |
protected void | lockQueue() Equivalent to getQueue().lock(); . |
public String[] | parseString(String path) Parses a string to a string array
using a PathParser assigned to this operator. |
public String[] | parseString(String path, String delim) Parses strings like "1|2|3" into arrays {"1", "2", "3"}. |
public void | printDump() Prints component information into operator output. |
protected void | produceNoBlocking(NoBlockingAction action, Object param) Performs an operation without time control. |
protected void | produceNoBlocking(NoBlockingAction action) Performs an operation without time control. |
protected Object | produceTimeRestricted(Action action, Object param, long wholeTime) Performs an operation with time control.
Parameters: action - an action to execute. Parameters: param - an action parameters. Parameters: wholeTime - a time for the action to be finished. |
protected Object | produceTimeRestricted(Action action, long wholeTime) Performs an operation with time control.
Parameters: action - an action to execute. Parameters: wholeTime - a time for the action to be finished. |
protected Object | runMapping(MapAction action) To map nonprimitive type component's method.
Parameters: action - a mapping action. |
protected char | runMapping(MapCharacterAction action) To map char component's method.
Parameters: action - a mapping action. |
protected byte | runMapping(MapByteAction action) To map byte component's method.
Parameters: action - a mapping action. |
protected int | runMapping(MapIntegerAction action) To map int component's method.
Parameters: action - a mapping action. |
protected long | runMapping(MapLongAction action) To map long component's method.
Parameters: action - a mapping action. |
protected float | runMapping(MapFloatAction action) To map float component's method.
Parameters: action - a mapping action. |
protected double | runMapping(MapDoubleAction action) To map double component's method.
Parameters: action - a mapping action. |
protected boolean | runMapping(MapBooleanAction action) To map boolean component's method.
Parameters: action - a mapping action. |
protected void | runMapping(MapVoidAction action) To map void component's method. |
public void | setCharBindingMap(CharBindingMap map) Defines CharBindingMap. |
public void | setComparator(StringComparator comparator) Defines object which is used for string comparison. |
public static ComponentVisualizer | setDefaultComponentVisualizer(ComponentVisualizer visualizer) Specifies an object to be used by default to prepare component. |
public static PathParser | setDefaultPathParser(PathParser parser) Specifies an object used for parsing of path-like strings.
Parameters: parser - the parser. |
public static StringComparator | setDefaultStringComparator(StringComparator comparator) Defines string comparator to be assigned in constructor.
Parameters: comparator - the comparator to be used by default. |
public static boolean | setDefaultVerification(boolean verification) Defines weither newly created operators should perform operation verifications by default.
Parameters: verification - a verification mode to be used by default. |
public void | setOutput(TestOut out) |
public void | setPathParser(PathParser parser) Specifies object which is used for parsing of path-like strings. |
public JemmyProperties | setProperties(JemmyProperties properties) Assigns a JemmyProperty object to this operator.
Parameters: properties - a properties to assign to this operator. |
public void | setTimeouts(Timeouts timeouts) |
public boolean | setVerification(boolean verification) Defines weither operator should perform operation verifications.
Parameters: verification - new value. |
public void | setVisualizer(ComponentVisualizer vo) Changes component visualizer. |
public String | toStringSource() Returns toString() result from component of this operator. |
protected void | unlockAndThrow(Exception e) Unlocks Queue and then throw exception. |
protected void | unlockQueue() Equivalent to getQueue().unlock(); . |
public void | waitState(ComponentChooser state) Waits a state specified by a ComponentChooser instance. |