Java Doc for DialogWaiter.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.Waiter
      org.netbeans.jemmy.WindowWaiter
         org.netbeans.jemmy.DialogWaiter

DialogWaiter
public class DialogWaiter extends WindowWaiter implements Timeoutable,Outputable(Code)
A DialogWaiter is a utility class used to look or wait for Dialogs. It contains methods to search for a Dialog among the currently showing Dialogs as well as methods that wait for a Diaog to show within an allotted time period. Searches and waits can either involve search criteria applied by a ComponentChooser instance or a search criteria based on the Dialog title. Searches and waits can both be restricted to dialogs owned by a given window.

Timeouts used:
DialogWaiter.WaitDialogTimeout - time to wait dialog displayed
DialogWaiter.AfterDialogTimeout - time to sleep after dialog has been dispayed

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



Constructor Summary
public  DialogWaiter()
     Constructor.

Method Summary
protected  StringgetActionProducedMessage(long spendedTime, Object result)
     Overrides WindowWaiter.getActionProducedMessage.
public static  DialoggetDialog(ComponentChooser cc)
     Searches for a dialog. Search among the currently showing dialogs for one that meets the search criteria applied by the ComponentChooser parameter.
Parameters:
  cc - A component chooser used to define and apply the search criteria.
public static  DialoggetDialog(ComponentChooser cc, int index)
     Searches for a dialog. The search proceeds among the currently showing dialogs for the index+1'th dialog that meets the criteria defined and applied by the ComonentChooser parameter.
Parameters:
  cc - A component chooser used to define and apply the search criteria.
Parameters:
  index - The ordinal index of the dialog in the set of currently displayeddialogs.
public static  DialoggetDialog(String title, boolean ce, boolean cc)
     Searches for a dialog by title. The search proceeds among the currently showing dialogs for the first with a suitable title.
Parameters:
  title - Dialog title or subtitle.
Parameters:
  ce - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of adialog title.
public static  DialoggetDialog(String title, boolean ce, boolean cc, int index)
     Searches for a dialog by title. The search is for the index+1'th dialog among the currently showing dialogs that possess a suitable title.
Parameters:
  title - Dialog title or subtitle.
Parameters:
  ce - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of adialog title.
public static  DialoggetDialog(Window owner, ComponentChooser cc)
     Searches for a dialog. Search among the currently showing dialogs for the first that is both owned by the java.awt.Window owner and that meets the search criteria applied by the ComponentChooser parameter.
Parameters:
  owner - The owner window of the dialogs to be searched.
Parameters:
  cc - A component chooser used to define and apply the search criteria.
public static  DialoggetDialog(Window owner, ComponentChooser cc, int index)
     Searches for a dialog.
public static  DialoggetDialog(Window owner, String title, boolean ce, boolean cc)
     Searches for a dialog by title. The search proceeds among the currently showing dialogs that are owned by the java.awt.Window owner for the first with a suitable title.
Parameters:
  owner - A window - owner of a dialods to be checked.
Parameters:
  title - Dialog title or subtitle.
Parameters:
  ce - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of adialog title.
public static  DialoggetDialog(Window owner, String title, boolean ce, boolean cc, int index)
     Searches for a dialog by title. The search is for the index+1'th dialog among the currently showing dialogs that are owned by the java.awt.Window owner and that have a suitable title.
Parameters:
  owner - ?title? Dialog title or subtitle.
Parameters:
  title - ?ce? If true and the search is case sensitive, then amatch occurs when the title argument is a substring of adialog title.
protected  StringgetGoldenActionProducedMessage()
    
protected  StringgetGoldenTimeoutExpiredMessage()
    
protected  StringgetGoldenWaitingStartedMessage()
    
public  TestOutgetOutput()
     Returns print output streams or writers.
protected  StringgetTimeoutExpiredMessage(long spendedTime)
     Overrides WindowWaiter.getTimeoutExpiredMessage.
public  TimeoutsgetTimeouts()
     Return current timeouts.
protected  StringgetWaitingStartedMessage()
    
public  voidsetOutput(TestOut output)
     Defines print output streams or writers.
public  voidsetTimeouts(Timeouts timeouts)
     Defines current timeouts.
public  DialogwaitDialog(ComponentChooser ch, int index)
     Waits for a dialog to show. Wait for the index+1'th dialog that meets the criteria defined and applied by the ComonentChooser parameter to show up.
Parameters:
  ch - A component chooser used to define and apply the search criteria.
Parameters:
  index - The ordinal index of the dialog in the set of currently displayeddialogs.
public  DialogwaitDialog(ComponentChooser ch)
     Waits for a dialog to show. Wait for a dialog that meets the search criteria applied by the ComponentChooser parameter to show up.
Parameters:
  ch - A component chooser used to define and apply the search criteria. a reference to the first dialog that shows and thatmeets the search criteria.
public  DialogwaitDialog(String title, boolean compareExactly, boolean compareCaseSensitive, int index)
     Waits for a dialog to show. Wait for the index+1'th dialog to show with a suitable title.
Parameters:
  title - Dialog title or subtitle.
Parameters:
  compareExactly - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of adialog title.
public  DialogwaitDialog(String title, boolean compareExactly, boolean compareCaseSensitive)
     Waits for a dialog to show. Wait for the first dialog to show with a suitable title.
Parameters:
  title - Dialog title or subtitle.
Parameters:
  compareExactly - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of adialog title.
public  DialogwaitDialog(Window owner, ComponentChooser ch, int index)
     Waits for a dialog to show. Wait for the index+1'th dialog to show that is both owned by the java.awt.Window owner and that meets the criteria defined and applied by the ComponentChooser parameter.
Parameters:
  owner - The owner window of all the dialogs to be searched.
Parameters:
  ch - A component chooser used to define and apply the search criteria.
Parameters:
  index - The ordinal index of the dialog in the set of currently displayeddialogs with the proper window ownership and a suitable title.
public  DialogwaitDialog(Window owner, ComponentChooser ch)
     Waits for a dialog to show.
public  DialogwaitDialog(Window owner, String title, boolean compareExactly, boolean compareCaseSensitive, int index)
     Waits for a dialog to show. Wait for the index+1'th dialog to show with the proper owner and a suitable title.
Parameters:
  owner - The owner window of all the dialogs to be searched.
Parameters:
  title - Dialog title or subtitle.
Parameters:
  compareExactly - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of adialog title.
public  DialogwaitDialog(Window owner, String title, boolean compareExactly, boolean compareCaseSensitive)
     Waits for a dialog to show. Wait for the first dialog to show with the proper owner and a suitable title.
See Also:   org.netbeans.jemmy.WindowWaiter.actionProduced(Object)
Parameters:
  owner - The owner window of all the dialogs to be searched.
Parameters:
  title - Dialog title or subtitle.
Parameters:
  compareExactly - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of adialog title.


Constructor Detail
DialogWaiter
public DialogWaiter()(Code)
Constructor.




Method Detail
getActionProducedMessage
protected String getActionProducedMessage(long spendedTime, Object result)(Code)
Overrides WindowWaiter.getActionProducedMessage. Returns the action produced message value.
See Also:   org.netbeans.jemmy.Waiter.getActionProducedMessage(longObject)
Parameters:
  spendedTime - Time spent for waiting
Parameters:
  result - A result of the action A message string.



getDialog
public static Dialog getDialog(ComponentChooser cc)(Code)
Searches for a dialog. Search among the currently showing dialogs for one that meets the search criteria applied by the ComponentChooser parameter.
Parameters:
  cc - A component chooser used to define and apply the search criteria. a reference to the first dialog that is showing and thatmeets the search criteria. If no such dialog can be found, anull reference is returned.



getDialog
public static Dialog getDialog(ComponentChooser cc, int index)(Code)
Searches for a dialog. The search proceeds among the currently showing dialogs for the index+1'th dialog that meets the criteria defined and applied by the ComonentChooser parameter.
Parameters:
  cc - A component chooser used to define and apply the search criteria.
Parameters:
  index - The ordinal index of the dialog in the set of currently displayeddialogs. The first index is 0. a reference to the index+1'th dialog that is showingand that meets the search criteria. If there are fewer thanindex+1 dialogs, a null reference is returned.



getDialog
public static Dialog getDialog(String title, boolean ce, boolean cc)(Code)
Searches for a dialog by title. The search proceeds among the currently showing dialogs for the first with a suitable title.
Parameters:
  title - Dialog title or subtitle.
Parameters:
  ce - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of adialog title. If false and the search is case sensitive,then the title argument and the dialog title must be the same.If true and the search is case insensitive, then a match occurswhen the title argument is a substring of the dialog title afterchanging both to upper case. If false and the search is caseinsensitive, then a match occurs when the title argument is asubstring of the dialog title after changing both to upper case.
Parameters:
  cc - If true the search is case sensitive; otherwise, thesearch is case insensitive. a reference to the first dialog that is showing and that has asuitable title. If no such dialog can be found, a nullreference is returned.



getDialog
public static Dialog getDialog(String title, boolean ce, boolean cc, int index)(Code)
Searches for a dialog by title. The search is for the index+1'th dialog among the currently showing dialogs that possess a suitable title.
Parameters:
  title - Dialog title or subtitle.
Parameters:
  ce - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of adialog title. If false and the search is case sensitive,then the title argument and the dialog title must be the same.If true and the search is case insensitive, then a match occurswhen the title argument is a substring of the dialog title afterchanging both to upper case. If false and the search is caseinsensitive, then a match occurs when the title argument is asubstring of the dialog title after changing both to upper case.
Parameters:
  cc - If true the search is case sensitive; otherwise, thesearch is case insensitive.
Parameters:
  index - Ordinal index between appropriate dialogs a reference to the index+1'th dialog that is showingand that has a suitable title. If there are fewer thanindex+1 dialogs, a null reference is returned.



getDialog
public static Dialog getDialog(Window owner, ComponentChooser cc)(Code)
Searches for a dialog. Search among the currently showing dialogs for the first that is both owned by the java.awt.Window owner and that meets the search criteria applied by the ComponentChooser parameter.
Parameters:
  owner - The owner window of the dialogs to be searched.
Parameters:
  cc - A component chooser used to define and apply the search criteria. a reference to the first dialog that is showing, has a properowner window, and that meets the search criteria. If no such dialogcan be found, a null reference is returned.



getDialog
public static Dialog getDialog(Window owner, ComponentChooser cc, int index)(Code)
Searches for a dialog. The search proceeds among the currently showing dialogs for the index+1'th dialog that is both owned by the java.awt.Window owner and that meets the criteria defined and applied by the ComponentChooser parameter.
Parameters:
  owner - The owner window of all the dialogs to be searched.
Parameters:
  cc - A component chooser used to define and apply the search criteria.
Parameters:
  index - Ordinal index between appropriate dialogs a reference to the index+1'th dialog that is showing,has the proper window ownership, and that meets the search criteria.If there are fewer than index+1 dialogs, a nullreference is returned.



getDialog
public static Dialog getDialog(Window owner, String title, boolean ce, boolean cc)(Code)
Searches for a dialog by title. The search proceeds among the currently showing dialogs that are owned by the java.awt.Window owner for the first with a suitable title.
Parameters:
  owner - A window - owner of a dialods to be checked.
Parameters:
  title - Dialog title or subtitle.
Parameters:
  ce - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of adialog title. If false and the search is case sensitive,then the title argument and the dialog title must be the same.If true and the search is case insensitive, then a match occurswhen the title argument is a substring of the dialog title afterchanging both to upper case. If false and the search is caseinsensitive, then a match occurs when the title argument is asubstring of the dialog title after changing both to upper case.
Parameters:
  cc - If true the search is case sensitive; otherwise, thesearch is case insensitive. a reference to the first dialog that is showing, has the properwindow ownership, and a suitable title. If no such dialog can be found,a null reference is returned.



getDialog
public static Dialog getDialog(Window owner, String title, boolean ce, boolean cc, int index)(Code)
Searches for a dialog by title. The search is for the index+1'th dialog among the currently showing dialogs that are owned by the java.awt.Window owner and that have a suitable title.
Parameters:
  owner - ?title? Dialog title or subtitle.
Parameters:
  title - ?ce? If true and the search is case sensitive, then amatch occurs when the title argument is a substring of adialog title. If false and the search is case sensitive,then the title argument and the dialog title must be the same.If true and the search is case insensitive, then a match occurswhen the title argument is a substring of the dialog title afterchanging both to upper case. If false and the search is caseinsensitive, then a match occurs when the title argument is asubstring of the dialog title after changing both to upper case.
Parameters:
  ce - ?cc? If true the search is case sensitive; otherwise, thesearch is case insensitive.
Parameters:
  cc - ?index? The ordinal index of the dialog in the set of currently displayeddialogs with the proper window ownership and a suitable title. Thefirst index is 0.
Parameters:
  index - Ordinal index between appropriate dialogs a reference to the index+1'th dialog that is showing, hasthe proper window ownership, and a suitable title. If there are fewer thanindex+1 dialogs, a null reference is returned.



getGoldenActionProducedMessage
protected String getGoldenActionProducedMessage()(Code)

See Also:   org.netbeans.jemmy.Waiter.getGoldenActionProducedMessage



getGoldenTimeoutExpiredMessage
protected String getGoldenTimeoutExpiredMessage()(Code)

See Also:   org.netbeans.jemmy.Waiter.getGoldenTimeoutExpiredMessage



getGoldenWaitingStartedMessage
protected String getGoldenWaitingStartedMessage()(Code)

See Also:   org.netbeans.jemmy.Waiter.getGoldenWaitingStartedMessage



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.TestOut
See Also:   org.netbeans.jemmy.Outputable
See Also:   DialogWaiter.setOutput



getTimeoutExpiredMessage
protected String getTimeoutExpiredMessage(long spendedTime)(Code)
Overrides WindowWaiter.getTimeoutExpiredMessage. Returns the timeout expired message value.
See Also:   org.netbeans.jemmy.Waiter.getTimeoutExpiredMessage(long)
Parameters:
  spendedTime - Time spent for waiting A message string.



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



getWaitingStartedMessage
protected String getWaitingStartedMessage()(Code)

See Also:   org.netbeans.jemmy.Waiter.getWaitingStartedMessage



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



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



waitDialog
public Dialog waitDialog(ComponentChooser ch, int index) throws InterruptedException(Code)
Waits for a dialog to show. Wait for the index+1'th dialog that meets the criteria defined and applied by the ComonentChooser parameter to show up.
Parameters:
  ch - A component chooser used to define and apply the search criteria.
Parameters:
  index - The ordinal index of the dialog in the set of currently displayeddialogs. The first index is 0. a reference to the index+1'th dialog that showsand that meets the search criteria. If fewer thanindex+1 dialogs show up in the allotted time period thena null reference is returned.
throws:
  TimeoutExpiredException -
See Also:   org.netbeans.jemmy.WindowWaiter.actionProduced(Object)
exception:
  InterruptedException -



waitDialog
public Dialog waitDialog(ComponentChooser ch) throws InterruptedException(Code)
Waits for a dialog to show. Wait for a dialog that meets the search criteria applied by the ComponentChooser parameter to show up.
Parameters:
  ch - A component chooser used to define and apply the search criteria. a reference to the first dialog that shows and thatmeets the search criteria. If no such dialog can be found within thetime period allotted, a null reference is returned.
throws:
  TimeoutExpiredException -
See Also:   org.netbeans.jemmy.WindowWaiter.actionProduced(Object)
exception:
  InterruptedException -



waitDialog
public Dialog waitDialog(String title, boolean compareExactly, boolean compareCaseSensitive, int index) throws InterruptedException(Code)
Waits for a dialog to show. Wait for the index+1'th dialog to show with a suitable title.
Parameters:
  title - Dialog title or subtitle.
Parameters:
  compareExactly - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of adialog title. If false and the search is case sensitive,then the title argument and the dialog title must be the same.If true and the search is case insensitive, then a match occurswhen the title argument is a substring of the dialog title afterchanging both to upper case. If false and the search is caseinsensitive, then a match occurs when the title argument is asubstring of the dialog title after changing both to upper case.
Parameters:
  compareCaseSensitive - If true the search is case sensitive;otherwise, the search is case insensitive.
Parameters:
  index - The ordinal index of the dialog in the set of currently displayeddialogs with the proper window ownership and a suitable title. Thefirst index is 0. a reference to the index+1'th dialog to show and that has asuitable title. If no such dialog can be found within the time periodallotted, a null reference is returned.
throws:
  TimeoutExpiredException -
See Also:   org.netbeans.jemmy.WindowWaiter.actionProduced(Object)
exception:
  InterruptedException -



waitDialog
public Dialog waitDialog(String title, boolean compareExactly, boolean compareCaseSensitive) throws InterruptedException(Code)
Waits for a dialog to show. Wait for the first dialog to show with a suitable title.
Parameters:
  title - Dialog title or subtitle.
Parameters:
  compareExactly - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of adialog title. If false and the search is case sensitive,then the title argument and the dialog title must be the same.If true and the search is case insensitive, then a match occurswhen the title argument is a substring of the dialog title afterchanging both to upper case. If false and the search is caseinsensitive, then a match occurs when the title argument is asubstring of the dialog title after changing both to upper case.
Parameters:
  compareCaseSensitive - If true the search is case sensitive;otherwise, the search is case insensitive. a reference to the first dialog to show and that has asuitable title. If no such dialog can be found within the time periodallotted, a null reference is returned.
throws:
  TimeoutExpiredException -
See Also:   org.netbeans.jemmy.WindowWaiter.actionProduced(Object)
exception:
  InterruptedException -



waitDialog
public Dialog waitDialog(Window owner, ComponentChooser ch, int index) throws InterruptedException(Code)
Waits for a dialog to show. Wait for the index+1'th dialog to show that is both owned by the java.awt.Window owner and that meets the criteria defined and applied by the ComponentChooser parameter.
Parameters:
  owner - The owner window of all the dialogs to be searched.
Parameters:
  ch - A component chooser used to define and apply the search criteria.
Parameters:
  index - The ordinal index of the dialog in the set of currently displayeddialogs with the proper window ownership and a suitable title. The firstindex is 0. a reference to the index+1'th dialog to show thathas the proper window ownership, and that meets the search criteria.If there are fewer than index+1 dialogs, a nullreference is returned.
throws:
  TimeoutExpiredException -
See Also:   org.netbeans.jemmy.WindowWaiter.actionProduced(Object)
exception:
  InterruptedException -



waitDialog
public Dialog waitDialog(Window owner, ComponentChooser ch) throws InterruptedException(Code)
Waits for a dialog to show. Wait for the first dialog to show that is both owned by the java.awt.Window owner and that meets the criteria defined and applied by the ComponentChooser parameter.
Parameters:
  owner - The owner window of all the dialogs to be searched.
Parameters:
  ch - A component chooser used to define and apply the search criteria. a reference to the first dialog to show thathas the proper window ownership, and that meets the search criteria.If there is no such dialog, a null reference is returned.
throws:
  TimeoutExpiredException -
See Also:   org.netbeans.jemmy.WindowWaiter.actionProduced(Object)
exception:
  InterruptedException -



waitDialog
public Dialog waitDialog(Window owner, String title, boolean compareExactly, boolean compareCaseSensitive, int index) throws InterruptedException(Code)
Waits for a dialog to show. Wait for the index+1'th dialog to show with the proper owner and a suitable title.
Parameters:
  owner - The owner window of all the dialogs to be searched.
Parameters:
  title - Dialog title or subtitle.
Parameters:
  compareExactly - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of adialog title. If false and the search is case sensitive,then the title argument and the dialog title must be the same.If true and the search is case insensitive, then a match occurswhen the title argument is a substring of the dialog title afterchanging both to upper case. If false and the search is caseinsensitive, then a match occurs when the title argument is asubstring of the dialog title after changing both to upper case.
Parameters:
  compareCaseSensitive - If true the search is case sensitive;otherwise, the search is case insensitive.
Parameters:
  index - Ordinal index between appropriate dialogs a reference to the index+1'th dialog to show that hasboth the proper owner window and a suitable title. If no such dialog can be foundwithin the time period allotted, a null reference is returned.
throws:
  TimeoutExpiredException -
See Also:   org.netbeans.jemmy.WindowWaiter.actionProduced(Object)
exception:
  InterruptedException -



waitDialog
public Dialog waitDialog(Window owner, String title, boolean compareExactly, boolean compareCaseSensitive) throws InterruptedException(Code)
Waits for a dialog to show. Wait for the first dialog to show with the proper owner and a suitable title.
See Also:   org.netbeans.jemmy.WindowWaiter.actionProduced(Object)
Parameters:
  owner - The owner window of all the dialogs to be searched.
Parameters:
  title - Dialog title or subtitle.
Parameters:
  compareExactly - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of adialog title. If false and the search is case sensitive,then the title argument and the dialog title must be the same.If true and the search is case insensitive, then a match occurswhen the title argument is a substring of the dialog title afterchanging both to upper case. If false and the search is caseinsensitive, then a match occurs when the title argument is asubstring of the dialog title after changing both to upper case.
Parameters:
  compareCaseSensitive - If true the search is case sensitive;otherwise, the search is case insensitive. a reference to the first dialog to show and that has both the properowner and a suitable title. If no such dialog can be found within the time periodallotted, a null reference is returned.
throws:
  TimeoutExpiredException -
exception:
  InterruptedException -



Methods inherited from org.netbeans.jemmy.WindowWaiter
public Object actionProduced(Object obj)(Code)(Java Doc)
protected String getActionProducedMessage(long timeSpent, Object result)(Code)(Java Doc)
protected ComponentChooser getComponentChooser()(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
protected String getGoldenActionProducedMessage()(Code)(Java Doc)
protected String getGoldenTimeoutExpiredMessage()(Code)(Java Doc)
protected String getGoldenWaitingStartedMessage()(Code)(Java Doc)
protected Window getOwner()(Code)(Java Doc)
protected String getTimeoutExpiredMessage(long timeSpent)(Code)(Java Doc)
public Timeouts getTimeouts()(Code)(Java Doc)
protected String getWaitingStartedMessage()(Code)(Java Doc)
public static Window getWindow(Window owner, ComponentChooser cc, int index)(Code)(Java Doc)
public static Window getWindow(Window owner, ComponentChooser cc)(Code)(Java Doc)
public static Window getWindow(ComponentChooser cc, int index)(Code)(Java Doc)
public static Window getWindow(ComponentChooser cc)(Code)(Java Doc)
protected void setComponentChooser(ComponentChooser ch)(Code)(Java Doc)
protected void setOwner(Window owner)(Code)(Java Doc)
public void setTimeouts(Timeouts timeouts)(Code)(Java Doc)
public Window waitWindow(ComponentChooser ch, int index) throws InterruptedException(Code)(Java Doc)
public Window waitWindow(ComponentChooser ch) throws InterruptedException(Code)(Java Doc)
public Window waitWindow(Window o, ComponentChooser ch, int index) throws InterruptedException(Code)(Java Doc)
public Window waitWindow(Window o, ComponentChooser ch) throws InterruptedException(Code)(Java Doc)

Methods inherited from org.netbeans.jemmy.Waiter
public Object actionProduced(Object obj)(Code)(Java Doc)
protected String getActionProducedMessage(long timeSpent, Object result)(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
protected String getGoldenActionProducedMessage()(Code)(Java Doc)
protected String getGoldenTimeoutExpiredMessage()(Code)(Java Doc)
protected String getGoldenWaitingStartedMessage()(Code)(Java Doc)
public TestOut getOutput()(Code)(Java Doc)
protected String getTimeoutExpiredMessage(long timeSpent)(Code)(Java Doc)
public Timeouts getTimeouts()(Code)(Java Doc)
protected String getWaitingStartedMessage()(Code)(Java Doc)
public void setOutput(TestOut out)(Code)(Java Doc)
public void setTimeouts(Timeouts timeouts)(Code)(Java Doc)
protected long timeFromStart()(Code)(Java Doc)
public Object waitAction(Object waitableObject) throws InterruptedException(Code)(Java Doc)

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.