Java Doc for Operator.java in  » Testing » jemmy » org » netbeans » jemmy » operators » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » jemmy » org.netbeans.jemmy.operators 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.jemmy.operators.Operator

All known Subclasses:   org.netbeans.jemmy.operators.ComponentOperator,
Operator
abstract public class Operator extends Object implements Timeoutable,Outputable(Code)
Keeps all environment and low-level methods.
author:
   Alexandre Iline (alexandre.iline@sun.com)

Inner Class :public interface ComponentVisualizer
Inner Class :public interface StringComparator
Inner Class :public static class DefaultStringComparator implements StringComparator
Inner Class :public interface PathParser
Inner Class :public static class DefaultPathParser implements PathParser
Inner Class :public static class Finder implements ComponentChooser
Inner Class :abstract protected class NoBlockingAction implements Action
Inner Class :abstract protected class MapAction extends QueueTool.QueueAction
Inner Class :abstract protected class MapCharacterAction extends QueueTool.QueueAction
Inner Class :abstract protected class MapByteAction extends QueueTool.QueueAction
Inner Class :abstract protected class MapIntegerAction extends QueueTool.QueueAction
Inner Class :abstract protected class MapLongAction extends QueueTool.QueueAction
Inner Class :abstract protected class MapFloatAction extends QueueTool.QueueAction
Inner Class :abstract protected class MapDoubleAction extends QueueTool.QueueAction
Inner Class :abstract protected class MapBooleanAction extends QueueTool.QueueAction
Inner Class :abstract protected class MapVoidAction extends QueueTool.QueueAction

Field Summary
final public static  StringCLASS_DPROP
     Identifier for a "class" property.
final public static  StringTO_STRING_DPROP
     Identifier for a "toString" property.

Constructor Summary
public  Operator()
     Inits environment.

Method Summary
public static  voidaddOperatorPackage(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  voidcopyEnvironment(Operator anotherOperator)
     Copies all environment (output, timeouts, visualizer) from another operator.
public static  ComponentOperatorcreateOperator(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  CharBindingMapgetCharBindingMap()
     Returns CharBindingMap used for keyboard operations.
public  intgetCharKey(char c)
     Returns key code to be pressed for character typing.
Parameters:
  c - Character to be typed.
public  intgetCharModifiers(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  StringComparatorgetComparator()
     Returns object which is used for string comparison.
public static  ComponentVisualizergetDefaultComponentVisualizer()
     Returns an object to be used by default to prepare component.
public static  intgetDefaultMouseButton()
     Returns default mouse button mask.
public static  PathParsergetDefaultPathParser()
     Returns an object used for parsing of path-like strings.
public static  StringComparatorgetDefaultStringComparator()
     Returns string comparator used to init operators.
public static  booleangetDefaultVerification()
     Says weither newly created operators perform operations verifications by default.
public  HashtablegetDump()
     Returns information about component.
public static  OperatorgetEnvironmentOperator()
     Returns an operator containing default environment.
public  TestOutgetOutput()
    
public  String[]getParentPath(String path)
     Creates new array which has all elements from first array, except last element.
public  ComponentChooser[]getParentPath(ComponentChooser path)
    
public  PathParsergetPathParser()
     Returns object which is used for parsing of path-like strings.
public static  intgetPopupMouseButton()
     Returns mask of mouse button which used to popup expanding.
public  JemmyPropertiesgetProperties()
     Returns a JemmyProperty object assigned to this operator.
public  QueueToolgetQueueTool()
     Returns QueueTool is used to work with queue.
abstract public  ComponentgetSource()
     Returns object operator is used for.
public  TimeoutsgetTimeouts()
    
public  booleangetVerification()
     Says weither operator performs operation verifications.
public  ComponentVisualizergetVisualizer()
     Returns component visualizer.
public static  booleanisCaptionEqual(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  booleanisCaptionEqual(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  booleanisCaptionEqual(String caption, String match)
     Compares string using getComparator StringComparator.
protected  voidlockQueue()
     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  voidprintDump()
     Prints component information into operator output.
protected  voidproduceNoBlocking(NoBlockingAction action, Object param)
     Performs an operation without time control.
protected  voidproduceNoBlocking(NoBlockingAction action)
     Performs an operation without time control.
protected  ObjectproduceTimeRestricted(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  ObjectproduceTimeRestricted(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  ObjectrunMapping(MapAction action)
     To map nonprimitive type component's method.
Parameters:
  action - a mapping action.
protected  charrunMapping(MapCharacterAction action)
     To map char component's method.
Parameters:
  action - a mapping action.
protected  byterunMapping(MapByteAction action)
     To map byte component's method.
Parameters:
  action - a mapping action.
protected  intrunMapping(MapIntegerAction action)
     To map int component's method.
Parameters:
  action - a mapping action.
protected  longrunMapping(MapLongAction action)
     To map long component's method.
Parameters:
  action - a mapping action.
protected  floatrunMapping(MapFloatAction action)
     To map float component's method.
Parameters:
  action - a mapping action.
protected  doublerunMapping(MapDoubleAction action)
     To map double component's method.
Parameters:
  action - a mapping action.
protected  booleanrunMapping(MapBooleanAction action)
     To map boolean component's method.
Parameters:
  action - a mapping action.
protected  voidrunMapping(MapVoidAction action)
     To map void component's method.
public  voidsetCharBindingMap(CharBindingMap map)
     Defines CharBindingMap.
public  voidsetComparator(StringComparator comparator)
     Defines object which is used for string comparison.
public static  ComponentVisualizersetDefaultComponentVisualizer(ComponentVisualizer visualizer)
     Specifies an object to be used by default to prepare component.
public static  PathParsersetDefaultPathParser(PathParser parser)
     Specifies an object used for parsing of path-like strings.
Parameters:
  parser - the parser.
public static  StringComparatorsetDefaultStringComparator(StringComparator comparator)
     Defines string comparator to be assigned in constructor.
Parameters:
  comparator - the comparator to be used by default.
public static  booleansetDefaultVerification(boolean verification)
     Defines weither newly created operators should perform operation verifications by default.
Parameters:
  verification - a verification mode to be used by default.
public  voidsetOutput(TestOut out)
    
public  voidsetPathParser(PathParser parser)
     Specifies object which is used for parsing of path-like strings.
public  JemmyPropertiessetProperties(JemmyProperties properties)
     Assigns a JemmyProperty object to this operator.
Parameters:
  properties - a properties to assign to this operator.
public  voidsetTimeouts(Timeouts timeouts)
    
public  booleansetVerification(boolean verification)
     Defines weither operator should perform operation verifications.
Parameters:
  verification - new value.
public  voidsetVisualizer(ComponentVisualizer vo)
     Changes component visualizer.
public  StringtoStringSource()
     Returns toString() result from component of this operator.
protected  voidunlockAndThrow(Exception e)
     Unlocks Queue and then throw exception.
protected  voidunlockQueue()
     Equivalent to getQueue().unlock();.
public  voidwaitState(ComponentChooser state)
     Waits a state specified by a ComponentChooser instance.

Field Detail
CLASS_DPROP
final public static String CLASS_DPROP(Code)
Identifier for a "class" property.
See Also:   Operator.getDump



TO_STRING_DPROP
final public static String TO_STRING_DPROP(Code)
Identifier for a "toString" property.
See Also:   Operator.getDump




Constructor Detail
Operator
public Operator()(Code)
Inits environment.




Method Detail
addOperatorPackage
public static void addOperatorPackage(String pkgName)(Code)
Adds package to the list of packages containing operators.
"org.netbeans.jemmy.operators" is in the list by default.
Parameters:
  pkgName - Package name.
See Also:   Operator.createOperator(Component)



addToDump
protected String[] addToDump(Hashtable table, String title, Object[] items)(Code)
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. Property names are constructed byadding a number to the prefix: title + "_" + Iteger.toString("ordinal index")
Parameters:
  items - an array of property values. an array of property names (with added numbers).



addToDump
protected String[] addToDump(Hashtable table, String title, Object[][] items)(Code)
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. Property names are constructed byadding two numbers to the prefix: title + "_" + Iteger.toString("row index") + "_" + Iteger.toString("column index")
Parameters:
  items - an array of property values. an array of property names (with added numbers).



copyEnvironment
public void copyEnvironment(Operator anotherOperator)(Code)
Copies all environment (output, timeouts, visualizer) from another operator.
Parameters:
  anotherOperator - an operator to copy the environment to.



createOperator
public static ComponentOperator createOperator(Component comp)(Code)
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. a new operator with default environment.
See Also:   Operator.addOperatorPackage(String)



getCharBindingMap
public CharBindingMap getCharBindingMap()(Code)
Returns CharBindingMap used for keyboard operations. a map assigned to this object.
See Also:   Operator.setCharBindingMap



getCharKey
public int getCharKey(char c)(Code)
Returns key code to be pressed for character typing.
Parameters:
  c - Character to be typed. a value of one of the KeyEvent.VK_* fields.
See Also:   org.netbeans.jemmy.CharBindingMap



getCharModifiers
public int getCharModifiers(char c)(Code)
Returns modifiers mask for character typing.
Parameters:
  c - Character to be typed. a combination of InputEvent.*_MASK fields.
See Also:   org.netbeans.jemmy.CharBindingMap



getCharsKeys
public int[] getCharsKeys(char[] c)(Code)
Returns key codes to by pressed for characters typing.
Parameters:
  c - Characters to be typed. an array of KeyEvent.VK_* values.
See Also:   org.netbeans.jemmy.CharBindingMap



getCharsKeys
public int[] getCharsKeys(String s)(Code)
Returns key codes to by pressed for the string typing.
Parameters:
  s - String to be typed. an array of KeyEvent.VK_* values.
See Also:   org.netbeans.jemmy.CharBindingMap



getCharsModifiers
public int[] getCharsModifiers(char[] c)(Code)
Returns modifiers masks for characters typing.
Parameters:
  c - Characters to be typed. an array of a combination of InputEvent.*_MASK fields.
See Also:   org.netbeans.jemmy.CharBindingMap



getCharsModifiers
public int[] getCharsModifiers(String s)(Code)
Returns modifiers masks for the string typing.
Parameters:
  s - String to be typed. an array of a combination of InputEvent.*_MASK fields.
See Also:   org.netbeans.jemmy.CharBindingMap



getComparator
public StringComparator getComparator()(Code)
Returns object which is used for string comparison. a comparator assigned to this operator.
See Also:   org.netbeans.jemmy.operators.Operator.StringComparator
See Also:   org.netbeans.jemmy.operators.Operator.DefaultStringComparator
See Also:   Operator.setComparator



getDefaultComponentVisualizer
public static ComponentVisualizer getDefaultComponentVisualizer()(Code)
Returns an object to be used by default to prepare component. Object is used by default to prepare component
See Also:   Operator.getVisualizer()
See Also:   Operator.setDefaultComponentVisualizer(Operator.ComponentVisualizer)



getDefaultMouseButton
public static int getDefaultMouseButton()(Code)
Returns default mouse button mask. InputEvent.BUTTON*_MASK field value



getDefaultPathParser
public static PathParser getDefaultPathParser()(Code)
Returns an object used for parsing of path-like strings. a parser used by default.
See Also:   Operator.PathParser
See Also:   Operator.setDefaultPathParser



getDefaultStringComparator
public static StringComparator getDefaultStringComparator()(Code)
Returns string comparator used to init operators. the comparator used by default.
See Also:   Operator.setDefaultStringComparator(Operator.StringComparator)
See Also:   Operator.StringComparator



getDefaultVerification
public static boolean getDefaultVerification()(Code)
Says weither newly created operators perform operations verifications by default. a verification mode used by default.
See Also:   Operator.setDefaultVerification(boolean)
See Also:   Operator.getVerification()



getDump
public Hashtable getDump()(Code)
Returns information about component. All records marked by simbolic constants defined in public static final *_DPROP fields for each operator type. a Hashtable containing name-value pairs.



getEnvironmentOperator
public static Operator getEnvironmentOperator()(Code)
Returns an operator containing default environment. an empty operator (not having any component source)having default environment.



getOutput
public TestOut getOutput()(Code)



getParentPath
public String[] getParentPath(String path)(Code)
Creates new array which has all elements from first array, except last element.
Parameters:
  path - an original array new array



getParentPath
public ComponentChooser[] getParentPath(ComponentChooser path)(Code)



getPathParser
public PathParser getPathParser()(Code)
Returns object which is used for parsing of path-like strings. a comparator assigned to this operator.
See Also:   Operator.setPathParser



getPopupMouseButton
public static int getPopupMouseButton()(Code)
Returns mask of mouse button which used to popup expanding. (InputEvent.BUTTON3_MASK) InputEvent.BUTTON*_MASK field value



getProperties
public JemmyProperties getProperties()(Code)
Returns a JemmyProperty object assigned to this operator. a JemmyProperty object got from the top of property stack or from another operator by copyuing environment.
See Also:   Operator.setProperties



getQueueTool
public QueueTool getQueueTool()(Code)
Returns QueueTool is used to work with queue. a QueueTool.



getSource
abstract public Component getSource()(Code)
Returns object operator is used for. an instance of java.awt.Component subclasswhich this operator was created for.



getTimeouts
public Timeouts getTimeouts()(Code)



getVerification
public boolean getVerification()(Code)
Says weither operator performs operation verifications. old value
See Also:   Operator.setDefaultVerification(boolean)
See Also:   Operator.getDefaultVerification()
See Also:   Operator.setVerification(boolean)



getVisualizer
public ComponentVisualizer getVisualizer()(Code)
Returns component visualizer. Visualizer is used from from makeComponentVisible() method. a visualizer assigned to this operator.
See Also:   Operator.getDefaultComponentVisualizer()
See Also:   Operator.setVisualizer(Operator.ComponentVisualizer)



isCaptionEqual
public static boolean isCaptionEqual(String caption, String match, boolean ce, boolean ccs)(Code)
Compares caption (button text, window title, ...) with a sample text.
Parameters:
  caption - String to be compared with match. Method returns false, if parameter is null.
Parameters:
  match - Sample to compare with. Method returns true, if parameter is null.
Parameters:
  ce - Compare exactly. If true, text can be a substring of caption.
Parameters:
  ccs - Compare case sensitively. If true, both text and caption are converted to upper case before comparison. true is the captions matched the match.
See Also:   Operator.isCaptionEqual



isCaptionEqual
public static boolean isCaptionEqual(String caption, String match, StringComparator comparator)(Code)
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. true is the captions matched the match.
See Also:   Operator.isCaptionEqual



isCaptionEqual
public boolean isCaptionEqual(String caption, String match)(Code)
Compares string using getComparator StringComparator.
Parameters:
  caption - a caption
Parameters:
  match - a pattern true if caption and match match
See Also:   Operator.isCaptionEqual



lockQueue
protected void lockQueue()(Code)
Equivalent to getQueue().lock();.



parseString
public String[] parseString(String path)(Code)
Parses a string to a string array using a PathParser assigned to this operator.
Parameters:
  path - an original string created String array.



parseString
public String[] parseString(String path, String delim)(Code)
Parses strings like "1|2|3" into arrays {"1", "2", "3"}.
Parameters:
  path - an original string
Parameters:
  delim - a delimiter string created String array.



printDump
public void printDump()(Code)
Prints component information into operator output.



produceNoBlocking
protected void produceNoBlocking(NoBlockingAction action, Object param)(Code)
Performs an operation without time control.
Parameters:
  action - an action to execute.
Parameters:
  param - an action parameters.



produceNoBlocking
protected void produceNoBlocking(NoBlockingAction action)(Code)
Performs an operation without time control.
Parameters:
  action - an action to execute.



produceTimeRestricted
protected Object produceTimeRestricted(Action action, Object param, long wholeTime)(Code)
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. an action result.



produceTimeRestricted
protected Object produceTimeRestricted(Action action, long wholeTime)(Code)
Performs an operation with time control.
Parameters:
  action - an action to execute.
Parameters:
  wholeTime - a time for the action to be finished. an action result.



runMapping
protected Object runMapping(MapAction action)(Code)
To map nonprimitive type component's method.
Parameters:
  action - a mapping action. an action result.
See Also:   Operator.MapAction



runMapping
protected char runMapping(MapCharacterAction action)(Code)
To map char component's method.
Parameters:
  action - a mapping action. an action result.
See Also:   Operator.runMapping(Operator.MapAction)
See Also:   Operator.MapCharacterAction



runMapping
protected byte runMapping(MapByteAction action)(Code)
To map byte component's method.
Parameters:
  action - a mapping action. an action result.
See Also:   Operator.runMapping(Operator.MapAction)
See Also:   Operator.MapByteAction



runMapping
protected int runMapping(MapIntegerAction action)(Code)
To map int component's method.
Parameters:
  action - a mapping action. an action result.
See Also:   Operator.runMapping(Operator.MapAction)
See Also:   Operator.MapIntegerAction



runMapping
protected long runMapping(MapLongAction action)(Code)
To map long component's method.
Parameters:
  action - a mapping action. an action result.
See Also:   Operator.runMapping(Operator.MapAction)
See Also:   Operator.MapLongAction



runMapping
protected float runMapping(MapFloatAction action)(Code)
To map float component's method.
Parameters:
  action - a mapping action. an action result.
See Also:   Operator.runMapping(Operator.MapAction)
See Also:   Operator.MapFloatAction



runMapping
protected double runMapping(MapDoubleAction action)(Code)
To map double component's method.
Parameters:
  action - a mapping action. an action result.
See Also:   Operator.runMapping(Operator.MapAction)
See Also:   Operator.MapDoubleAction



runMapping
protected boolean runMapping(MapBooleanAction action)(Code)
To map boolean component's method.
Parameters:
  action - a mapping action. an action result.
See Also:   Operator.runMapping(Operator.MapAction)
See Also:   Operator.MapBooleanAction



runMapping
protected void runMapping(MapVoidAction action)(Code)
To map void component's method.
Parameters:
  action - a mapping action.
See Also:   Operator.runMapping(Operator.MapAction)
See Also:   Operator.MapVoidAction



setCharBindingMap
public void setCharBindingMap(CharBindingMap map)(Code)
Defines CharBindingMap.
Parameters:
  map - a CharBindingMap to use for keyboard operations.
See Also:   org.netbeans.jemmy.CharBindingMap
See Also:   org.netbeans.jemmy.JemmyProperties.setCurrentCharBindingMap(CharBindingMap)
See Also:   Operator.getCharBindingMap



setComparator
public void setComparator(StringComparator comparator)(Code)
Defines object which is used for string comparison.
Parameters:
  comparator - a comparator to use for string comparision.
See Also:   org.netbeans.jemmy.operators.Operator.StringComparator
See Also:   org.netbeans.jemmy.operators.Operator.DefaultStringComparator
See Also:   Operator.getComparator



setDefaultComponentVisualizer
public static ComponentVisualizer setDefaultComponentVisualizer(ComponentVisualizer visualizer)(Code)
Specifies an object to be used by default to prepare component. Each new operator created after the method using will have defined visualizer. Default implementation is org.netbeans.jemmy.util.DefaultVisualizer class.
Parameters:
  visualizer - ComponentVisualizer implementation previous value
See Also:   Operator.setVisualizer(Operator.ComponentVisualizer)
See Also:   Operator.getDefaultComponentVisualizer()
See Also:   org.netbeans.jemmy.util.DefaultVisualizer



setDefaultPathParser
public static PathParser setDefaultPathParser(PathParser parser)(Code)
Specifies an object used for parsing of path-like strings.
Parameters:
  parser - the parser. a previous value.
See Also:   Operator.PathParser
See Also:   Operator.getDefaultPathParser



setDefaultStringComparator
public static StringComparator setDefaultStringComparator(StringComparator comparator)(Code)
Defines string comparator to be assigned in constructor.
Parameters:
  comparator - the comparator to be used by default. previous value.
See Also:   Operator.getDefaultStringComparator()
See Also:   Operator.StringComparator



setDefaultVerification
public static boolean setDefaultVerification(boolean verification)(Code)
Defines weither newly created operators should perform operation verifications by default.
Parameters:
  verification - a verification mode to be used by default. a prevoius value.
See Also:   Operator.getDefaultVerification()
See Also:   Operator.setVerification(boolean)



setOutput
public void setOutput(TestOut out)(Code)



setPathParser
public void setPathParser(PathParser parser)(Code)
Specifies object which is used for parsing of path-like strings.
Parameters:
  parser - a parser to use for path parsing.
See Also:   Operator.getPathParser



setProperties
public JemmyProperties setProperties(JemmyProperties properties)(Code)
Assigns a JemmyProperty object to this operator.
Parameters:
  properties - a properties to assign to this operator. previously assigned properties.
See Also:   Operator.getProperties



setTimeouts
public void setTimeouts(Timeouts timeouts)(Code)



setVerification
public boolean setVerification(boolean verification)(Code)
Defines weither operator should perform operation verifications.
Parameters:
  verification - new value. old value
See Also:   Operator.setDefaultVerification(boolean)
See Also:   Operator.getDefaultVerification()
See Also:   Operator.getVerification()



setVisualizer
public void setVisualizer(ComponentVisualizer vo)(Code)
Changes component visualizer. Visualizer is used from from makeComponentVisible() method.
Parameters:
  vo - a visualizer to assign to this operator.
See Also:   Operator.setDefaultComponentVisualizer(Operator.ComponentVisualizer)
See Also:   Operator.getVisualizer()



toStringSource
public String toStringSource()(Code)
Returns toString() result from component of this operator. It calls Operator.getSource .toString() in dispatch thread. toString() result from component of this operator.



unlockAndThrow
protected void unlockAndThrow(Exception e)(Code)
Unlocks Queue and then throw exception.
Parameters:
  e - an exception to be thrown.



unlockQueue
protected void unlockQueue()(Code)
Equivalent to getQueue().unlock();.



waitState
public void waitState(ComponentChooser state)(Code)
Waits a state specified by a ComponentChooser instance.
Parameters:
  state - a ComponentChooser defining the state criteria.
throws:
  TimeoutExpiredException - if the state has notachieved in a value defined by "ComponentOperator.WaitStateTimeout"



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.