Java Doc for EventDispatcher.java in  » IDE-Netbeans » jemmy » org » netbeans » jemmy » 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 » IDE Netbeans » jemmy » org.netbeans.jemmy 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.jemmy.EventDispatcher

EventDispatcher
public class EventDispatcher implements Outputable,Timeoutable(Code)
Provides low level functions for reproducing user actions. One dispatch model uses the managed component's event queue to dispatch events. The other dispatch model uses java.awt.Robot to generate native events. It is an option in the Robot dispatch model to wait for the managed component's event queue to empty before dispatching events. Timeouts used:
EventDispatcher.WaitQueueEmptyTimeout - to wait event queue empty.
EventDispatcher.RobotAutoDelay - param for java.awt.Robot.setAutoDelay method.
EventDispatcher.WaitComponentUnderMouseTimeout - time to wait component under mouse.

See Also:   org.netbeans.jemmy.Timeouts
author:
   Alexandre Iline (alexandre.iline@sun.com)


Field Summary
protected  Componentcomponent
     Component to dispatch events to.

Constructor Summary
public  EventDispatcher(Component comp)
     Constructor.

Method Summary
public  voidcheckComponentUnderMouse(boolean yesOrNo)
     Wait (or not) for the mouse to move over a Java component before pressing. This option is relevant when using java.awt.Robot to generate mouse events.
public  voiddelayRobot(long time)
     Delays robot.
public  voiddispatchEvent(AWTEvent event)
     Dispatches AWTEvent to component passed in constructor.
public  voiddispatchKeyEvent(int id, int mods, int keyCode)
     Dispatches KeyEvent.
public  voiddispatchKeyEvent(int id, int mods, int keyCode, char keyChar)
     Dispatches KeyEvent.
public  voiddispatchMouseEvent(int id, int mods, int clickCount, int x, int y, boolean popup)
     Dispatches a MouseEvent.
public  voiddispatchMouseEvent(int id, int mods, int clickCount, boolean popup)
     Dispatches MouseEvent at the center of component.
public  voiddispatchWindowEvent(int id)
     Dispatches WindowEvent.
protected  intgetAbsoluteX(int x)
     Bind horizontal relative cursor coordinate to screen coordinate.
protected  intgetAbsoluteY(int y)
     Bind vertical relative cursor coordinate to screen coordinate.
public  intgetDispatchingModel()
     Gets the dispatching model value.
public  ObjectgetExistingField(String field_name, TestOut out)
     Gets component field value through SwingUtilities.invokeAndWait(Runnable). and catch all exceptions.
Parameters:
  field_name - Name of a field
Parameters:
  out - TestOut instance to print exceptions stack trace to.
public  ObjectgetExistingField(String field_name)
     Gets component field value through SwingUtilities.invokeAndWait(Runnable).
public  ObjectgetField(String field_name)
     Gets component field value through SwingUtilities.invokeAndWait(Runnable).
public static  StringgetKeyDescription(int keyCode)
     Returns a string representation for a keyboard event.
public static  StringgetModifiersString(int modifiers)
     Get a string representation for key modifiers. Used to print trace.
Parameters:
  modifiers - Bit mask of keyboard event modifiers.
public static  StringgetMouseButtonDescription(int button)
     Returns a mouse button string representation. Used to print trace.
Parameters:
  button - Mouse button (InputEvent.BUTTON1/2/3_MASK value).
public  TestOutgetOutput()
     Returns print output streams or writers.
public  TimeoutsgetTimeouts()
     Return current timeouts.
public  ObjectinvokeExistingMethod(String method_name, Object[] params, Class[] params_classes, TestOut out)
     Invokes component method through SwingUtilities.invokeAndWait(Runnable). and catch all exceptions.
Parameters:
  method_name - Name of a method to be invoked
Parameters:
  params - Method params
Parameters:
  params_classes - Method params' classes
Parameters:
  out - TestOut instance to print exceptions stack trace to.
public  ObjectinvokeExistingMethod(String method_name, Object[] params, Class[] params_classes)
     Invokes component method through SwingUtilities.invokeAndWait(Runnable).
public  ObjectinvokeMethod(String method_name, Object[] params, Class[] params_classes)
     Invokes component method through SwingUtilities.invokeAndWait(Runnable).
public  voidrobotMoveMouse(int x, int y)
     Moves mouse by robot.
public  voidrobotPressKey(int keyCode, int modifiers)
     Press a key using java.awt.Robot.
public  voidrobotPressKey(int keyCode)
     Press key with no modifiers using java.awt.Robot.
public  voidrobotPressMouse(int button, int modifiers)
     Press mouse button by robot.
public  voidrobotPressMouse(int button)
     Press mouse button with 0 modifiers.
public  voidrobotReleaseKey(int keyCode, int modifiers)
     Releases key by robot.
public  voidrobotReleaseKey(int keyCode)
     Releases key with 0 modifiers.
public  voidrobotReleaseMouse(int button, int modifiers)
     Releases mouse button by robot.
public  voidrobotReleaseMouse(int button)
     Releases mouse button with 0 modifiers.
public  voidsetDispatchingModel(int m)
     Defines dispatching model.
public  voidsetExistingField(String field_name, Object newValue, TestOut out)
     Sets component field value through SwingUtilities.invokeAndWait(Runnable).
public  voidsetExistingField(String field_name, Object newValue)
     Sets component field value through SwingUtilities.invokeAndWait(Runnable).
public  voidsetField(String field_name, Object newValue)
     Sets component field value through SwingUtilities.invokeAndWait(Runnable).
public  voidsetOutput(TestOut out)
     Defines print output streams or writers.
public  voidsetTimeouts(Timeouts timeouts)
     Defines current timeouts.
public  voidwaitForIdle()
     Waits until all events currently on the event queue have been processed.
public static  voidwaitQueueEmpty(TestOut output, Timeouts timeouts)
     Waits for the managed component's java.awt.EventQueue to empty.
public static  voidwaitQueueEmpty()
     Waits for the managed component's java.awt.EventQueue to empty. Uses default output and timeouts.
public static  voidwaitQueueEmpty(long emptyTime, TestOut output, Timeouts timeouts)
     Waits for the managed component's java.awt.EventQueue to stay empty.
public static  voidwaitQueueEmpty(long emptyTime)
     Waits for the managed component's java.awt.EventQueue to stay empty. Uses default output and timeouts.

Field Detail
component
protected Component component(Code)
Component to dispatch events to.




Constructor Detail
EventDispatcher
public EventDispatcher(Component comp)(Code)
Constructor.
Parameters:
  comp - Component to operate with.




Method Detail
checkComponentUnderMouse
public void checkComponentUnderMouse(boolean yesOrNo)(Code)
Wait (or not) for the mouse to move over a Java component before pressing. This option is relevant when using java.awt.Robot to generate mouse events. If a mouse press occurs at a position not occupied by a known Java component then a NoComponentUnderMouseException will be thrown.
Parameters:
  yesOrNo - if true then the test system will wait forthe mouse to move over a Java component before pressing.therwise, mouse presses can take place anywhere on the screen.



delayRobot
public void delayRobot(long time)(Code)
Delays robot.
Parameters:
  time - Time to dalay robot for.



dispatchEvent
public void dispatchEvent(AWTEvent event)(Code)
Dispatches AWTEvent to component passed in constructor. If (getDispatchingModel & JemmyProperties.QUEUE_MODEL_MASK) == 0 dispatched event directly, otherwise uses javax.swing.SwingUtilities.invokeAndWait(Runnable)

Parameters:
  event - AWTEvent instance to be dispatched.
throws:
  ComponentIsNotVisibleException -
throws:
  ComponentIsNotFocusedException -



dispatchKeyEvent
public void dispatchKeyEvent(int id, int mods, int keyCode)(Code)
Dispatches KeyEvent.
See Also:   EventDispatcher.dispatchEvent(AWTEvent)
Parameters:
  id - KeyEvent.KEY_PRESSED or KeyEvent.KEY_RELEASED value.
Parameters:
  mods - Modifiers.
Parameters:
  keyCode - Key code,



dispatchKeyEvent
public void dispatchKeyEvent(int id, int mods, int keyCode, char keyChar)(Code)
Dispatches KeyEvent.
See Also:   EventDispatcher.dispatchEvent(AWTEvent)
Parameters:
  id - KeyEvent.KEY_TYPED value.
Parameters:
  mods - Modifiers.
Parameters:
  keyCode - Key code,
Parameters:
  keyChar - Char to be tiped



dispatchMouseEvent
public void dispatchMouseEvent(int id, int mods, int clickCount, int x, int y, boolean popup)(Code)
Dispatches a MouseEvent.
See Also:   EventDispatcher.dispatchEvent(AWTEvent)
Parameters:
  id - MouseEvent.MOUSE_* value
Parameters:
  mods - InputEvent.MOUSE1/2/3_BUTTON | (modiviers value)
Parameters:
  clickCount - Click count
Parameters:
  x - Horizontal click point coordinate.
Parameters:
  y - vertical click point coordinate.
Parameters:
  popup - Difines if mouse event is popup event.



dispatchMouseEvent
public void dispatchMouseEvent(int id, int mods, int clickCount, boolean popup)(Code)
Dispatches MouseEvent at the center of component.
See Also:   EventDispatcher.dispatchEvent(AWTEvent)
Parameters:
  id - MouseEvent.MOUSE_* value
Parameters:
  mods - InputEvent.MOUSE1/2/3_BUTTON | (modiviers value)
Parameters:
  clickCount - Click count
Parameters:
  popup - Difines if mouse event is popup event.



dispatchWindowEvent
public void dispatchWindowEvent(int id)(Code)
Dispatches WindowEvent.
See Also:   EventDispatcher.dispatchEvent(AWTEvent)
Parameters:
  id - WindowEvent.WINDOW_* value



getAbsoluteX
protected int getAbsoluteX(int x)(Code)
Bind horizontal relative cursor coordinate to screen coordinate.
Parameters:
  x - Relative coordinate Absolute coordinate



getAbsoluteY
protected int getAbsoluteY(int y)(Code)
Bind vertical relative cursor coordinate to screen coordinate.
Parameters:
  y - Relative coordinate Absolute coordinate



getDispatchingModel
public int getDispatchingModel()(Code)
Gets the dispatching model value. the model value.
See Also:   EventDispatcher.setDispatchingModel(int)
See Also:   org.netbeans.jemmy.JemmyProperties.QUEUE_MODEL_MASK
See Also:   org.netbeans.jemmy.JemmyProperties.ROBOT_MODEL_MASK
See Also:   org.netbeans.jemmy.JemmyProperties.getCurrentDispatchingModel
See Also:   org.netbeans.jemmy.JemmyProperties.setCurrentDispatchingModel(int)
See Also:   org.netbeans.jemmy.JemmyProperties.initDispatchingModel(booleanboolean)
See Also:   org.netbeans.jemmy.JemmyProperties.initDispatchingModel



getExistingField
public Object getExistingField(String field_name, TestOut out)(Code)
Gets component field value through SwingUtilities.invokeAndWait(Runnable). and catch all exceptions.
Parameters:
  field_name - Name of a field
Parameters:
  out - TestOut instance to print exceptions stack trace to. an Object - fields value
See Also:   EventDispatcher.getField(String)
See Also:   EventDispatcher.setExistingField(String,Object,TestOut)
See Also:   org.netbeans.jemmy.ClassReference



getExistingField
public Object getExistingField(String field_name)(Code)
Gets component field value through SwingUtilities.invokeAndWait(Runnable). and catch all exceptions. Exceptions are printed into TestOut object defined by setOutput(TestOut) method.
Parameters:
  field_name - Name of a field an Object - fields value
See Also:   EventDispatcher.getExistingField(String,TestOut)
See Also:   EventDispatcher.setExistingField(String,Object)
See Also:   org.netbeans.jemmy.ClassReference



getField
public Object getField(String field_name) throws InvocationTargetException, IllegalStateException, NoSuchFieldException, IllegalAccessException(Code)
Gets component field value through SwingUtilities.invokeAndWait(Runnable).
Parameters:
  field_name - Name of a field
See Also:   EventDispatcher.setField(String,Object)
See Also:   org.netbeans.jemmy.ClassReference an Object - field value
exception:
  IllegalAccessException -
exception:
  IllegalStateException -
exception:
  InvocationTargetException -
exception:
  NoSuchFieldException -



getKeyDescription
public static String getKeyDescription(int keyCode)(Code)
Returns a string representation for a keyboard event. Used to print trace.
Parameters:
  keyCode - Key code (KeyEvent.VK_* value) the KeyEvent field name.



getModifiersString
public static String getModifiersString(int modifiers)(Code)
Get a string representation for key modifiers. Used to print trace.
Parameters:
  modifiers - Bit mask of keyboard event modifiers. a string representation for the keyboard event modifiers.



getMouseButtonDescription
public static String getMouseButtonDescription(int button)(Code)
Returns a mouse button string representation. Used to print trace.
Parameters:
  button - Mouse button (InputEvent.BUTTON1/2/3_MASK value). InputEvent field name.



getOutput
public TestOut getOutput()(Code)
Returns print output streams or writers. an object that contains references to objects forprinting to output and err streams.
See Also:   org.netbeans.jemmy.Outputable
See Also:   org.netbeans.jemmy.TestOut
See Also:   EventDispatcher.setOutput



getTimeouts
public Timeouts getTimeouts()(Code)
Return current timeouts. the collection of current timeout assignments.
See Also:   org.netbeans.jemmy.Timeoutable
See Also:   org.netbeans.jemmy.Timeouts
See Also:   EventDispatcher.setTimeouts



invokeExistingMethod
public Object invokeExistingMethod(String method_name, Object[] params, Class[] params_classes, TestOut out)(Code)
Invokes component method through SwingUtilities.invokeAndWait(Runnable). and catch all exceptions.
Parameters:
  method_name - Name of a method to be invoked
Parameters:
  params - Method params
Parameters:
  params_classes - Method params' classes
Parameters:
  out - TestOut instance to print exceptions stack trace to. an Object - method result
See Also:   EventDispatcher.invokeMethod(String,Object[],Class[])
See Also:   org.netbeans.jemmy.ClassReference



invokeExistingMethod
public Object invokeExistingMethod(String method_name, Object[] params, Class[] params_classes)(Code)
Invokes component method through SwingUtilities.invokeAndWait(Runnable). and catch all exceptions. Exceptions are printed into TestOut object defined by setOutput(TestOut) method.
Parameters:
  method_name - Name of a method to be invoked
Parameters:
  params - Method params
Parameters:
  params_classes - Method params' classes an Object - method result
See Also:   EventDispatcher.invokeExistingMethod(String,Object[],Class[],TestOut)
See Also:   org.netbeans.jemmy.ClassReference



invokeMethod
public Object invokeMethod(String method_name, Object[] params, Class[] params_classes) throws InvocationTargetException, IllegalStateException, NoSuchMethodException, IllegalAccessException(Code)
Invokes component method through SwingUtilities.invokeAndWait(Runnable).
Parameters:
  method_name - Name of a method to be invoked
Parameters:
  params - Method params
Parameters:
  params_classes - Method params' classes an Object - methods result.
See Also:   org.netbeans.jemmy.ClassReference
exception:
  IllegalAccessException -
exception:
  NoSuchMethodException -
exception:
  IllegalStateException -
exception:
  InvocationTargetException -



robotMoveMouse
public void robotMoveMouse(int x, int y)(Code)
Moves mouse by robot.
Parameters:
  x - Component relative horizontal coordinate.
Parameters:
  y - Component relative vertical coordinate.
throws:
  ComponentIsNotVisibleException -



robotPressKey
public void robotPressKey(int keyCode, int modifiers)(Code)
Press a key using java.awt.Robot.
Parameters:
  keyCode - Key (KeyEvent.VK_* value)
Parameters:
  modifiers - Mask of KeyEvent modifiers.
throws:
  ComponentIsNotVisibleException -
throws:
  ComponentIsNotFocusedException -



robotPressKey
public void robotPressKey(int keyCode)(Code)
Press key with no modifiers using java.awt.Robot.
Parameters:
  keyCode - Key (KeyEvent.VK_* value)
See Also:   EventDispatcher.robotPressKey(int,int)



robotPressMouse
public void robotPressMouse(int button, int modifiers)(Code)
Press mouse button by robot.
Parameters:
  button - Mouse button (InputEvent.MOUSE1/2/3_BUTTON value)
Parameters:
  modifiers - Modifiers
throws:
  ComponentIsNotVisibleException -



robotPressMouse
public void robotPressMouse(int button)(Code)
Press mouse button with 0 modifiers.
Parameters:
  button - Mouse button (InputEvent.MOUSE1/2/3_BUTTON value)
See Also:   EventDispatcher.robotPressMouse(int,int)



robotReleaseKey
public void robotReleaseKey(int keyCode, int modifiers)(Code)
Releases key by robot.
Parameters:
  keyCode - Key (KeyEvent.VK_* value)
Parameters:
  modifiers - Mask of KeyEvent modifiers.
throws:
  ComponentIsNotVisibleException -
throws:
  ComponentIsNotFocusedException -



robotReleaseKey
public void robotReleaseKey(int keyCode)(Code)
Releases key with 0 modifiers.
Parameters:
  keyCode - Key (KeyEvent.VK_* value)
See Also:   EventDispatcher.robotPressKey(int,int)



robotReleaseMouse
public void robotReleaseMouse(int button, int modifiers)(Code)
Releases mouse button by robot.
Parameters:
  button - Mouse button (InputEvent.MOUSE1/2/3_BUTTON value)
Parameters:
  modifiers - Modifiers
throws:
  ComponentIsNotVisibleException -



robotReleaseMouse
public void robotReleaseMouse(int button)(Code)
Releases mouse button with 0 modifiers.
Parameters:
  button - Mouse button (InputEvent.MOUSE1/2/3_BUTTON value)
See Also:   EventDispatcher.robotReleaseMouse(int,int)



setDispatchingModel
public void setDispatchingModel(int m)(Code)
Defines dispatching model.
Parameters:
  m - New model value.
See Also:   EventDispatcher.getDispatchingModel()
See Also:   org.netbeans.jemmy.JemmyProperties.QUEUE_MODEL_MASK
See Also:   org.netbeans.jemmy.JemmyProperties.ROBOT_MODEL_MASK
See Also:   org.netbeans.jemmy.JemmyProperties.getCurrentDispatchingModel
See Also:   org.netbeans.jemmy.JemmyProperties.setCurrentDispatchingModel(int)
See Also:   org.netbeans.jemmy.JemmyProperties.initDispatchingModel(booleanboolean)
See Also:   org.netbeans.jemmy.JemmyProperties.initDispatchingModel



setExistingField
public void setExistingField(String field_name, Object newValue, TestOut out)(Code)
Sets component field value through SwingUtilities.invokeAndWait(Runnable). and catch all exceptions.
Parameters:
  field_name - Name of a field
Parameters:
  newValue - New field value
Parameters:
  out - TestOut instance to print exceptions stack trace to.
See Also:   EventDispatcher.setField(String,Object)
See Also:   EventDispatcher.getExistingField(String,TestOut)
See Also:   org.netbeans.jemmy.ClassReference



setExistingField
public void setExistingField(String field_name, Object newValue)(Code)
Sets component field value through SwingUtilities.invokeAndWait(Runnable). and catch all exceptions. Exceptions are printed into TestOut object defined by setOutput(TestOut) method.
Parameters:
  field_name - Name of a field
Parameters:
  newValue - New field value
See Also:   EventDispatcher.setExistingField(String,Object,TestOut)
See Also:   EventDispatcher.getExistingField(String)
See Also:   org.netbeans.jemmy.ClassReference



setField
public void setField(String field_name, Object newValue) throws InvocationTargetException, IllegalStateException, NoSuchFieldException, IllegalAccessException(Code)
Sets component field value through SwingUtilities.invokeAndWait(Runnable).
Parameters:
  field_name - Name of a field
Parameters:
  newValue - New field value
See Also:   EventDispatcher.getField(String)
See Also:   org.netbeans.jemmy.ClassReference
exception:
  IllegalAccessException -
exception:
  IllegalStateException -
exception:
  InvocationTargetException -
exception:
  NoSuchFieldException -



setOutput
public void setOutput(TestOut out)(Code)
Defines print output streams or writers.
Parameters:
  out - Identify the streams or writers used for print output.
See Also:   org.netbeans.jemmy.Outputable
See Also:   org.netbeans.jemmy.TestOut
See Also:   EventDispatcher.getOutput



setTimeouts
public void setTimeouts(Timeouts timeouts)(Code)
Defines current timeouts.
Parameters:
  timeouts - A collection of timeout assignments.
See Also:   org.netbeans.jemmy.Timeoutable
See Also:   org.netbeans.jemmy.Timeouts
See Also:   EventDispatcher.getTimeouts



waitForIdle
public void waitForIdle()(Code)
Waits until all events currently on the event queue have been processed.



waitQueueEmpty
public static void waitQueueEmpty(TestOut output, Timeouts timeouts)(Code)
Waits for the managed component's java.awt.EventQueue to empty. The timeout for this wait is EventDispatcher.WaitQueueEmptyTimeout.
Parameters:
  output - Output to print exception into.
Parameters:
  timeouts - A collection of timeout assignments.
throws:
  TimeoutExpiredException -
See Also:   org.netbeans.jemmy.QueueTool



waitQueueEmpty
public static void waitQueueEmpty()(Code)
Waits for the managed component's java.awt.EventQueue to empty. Uses default output and timeouts. The timeout for this wait is EventDispatcher.WaitQueueEmptyTimeout.
See Also:   QueueTool
throws:
  TimeoutExpiredException -



waitQueueEmpty
public static void waitQueueEmpty(long emptyTime, TestOut output, Timeouts timeouts)(Code)
Waits for the managed component's java.awt.EventQueue to stay empty. The timeout for this wait is EventDispatcher.WaitQueueEmptyTimeout.
Parameters:
  emptyTime - The time that the event queue has to stay empty to avoida TimeoutExpiredException.
Parameters:
  output - Output to print exception into
Parameters:
  timeouts - A collection of timeout assignments.
throws:
  TimeoutExpiredException -
See Also:   org.netbeans.jemmy.QueueTool



waitQueueEmpty
public static void waitQueueEmpty(long emptyTime)(Code)
Waits for the managed component's java.awt.EventQueue to stay empty. Uses default output and timeouts. The timeout for this wait is EventDispatcher.WaitQueueEmptyTimeout.
Parameters:
  emptyTime - The time that the event queue has to stay empty to avoida TimeoutExpiredException.
throws:
  TimeoutExpiredException -
See Also:   org.netbeans.jemmy.QueueTool



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.