Java Doc for FrameWaiter.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.FrameWaiter

FrameWaiter
public class FrameWaiter extends WindowWaiter implements Timeoutable,Outputable(Code)
Contains methods to search and wait Frame. A FrameWaiter is a utility class used to look or wait for Frames. It contains methods to search for a Frame among the currently showing Frames as well as methods that wait for a Frame to show within an allotted time period.

Timeouts used:
FrameWaiter.WaitFrameTimeout - time to wait frame displayed.
FrameWaiter.AfterFrameTimeout - time to sleep after frame has been displayed.

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



Constructor Summary
public  FrameWaiter()
     Constructor.

Method Summary
protected  StringgetActionProducedMessage(long timeSpent, Object result)
     Overrides WindowWaiter.getActionProducedMessage. Returns the action produced message value.
Parameters:
  timeSpent - Time spent for waiting.
Parameters:
  result - A message string.
public static  FramegetFrame(ComponentChooser cc)
     Searches for a Frame. Search among the currently showing Frames 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  FramegetFrame(ComponentChooser cc, int index)
     Searches for a Frame. The search proceeds among the currently showing Frames for the index+1'th Frame 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 Frame in the set of currently displayedFrames.
public static  FramegetFrame(String title, boolean ce, boolean cc)
     Searches for a Frame by title. The search proceeds among the currently showing Frames for the first with a suitable title.
Parameters:
  title - Frame title or subtitle.
Parameters:
  ce - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of aFrame title.
public static  FramegetFrame(String title, boolean ce, boolean cc, int index)
     Searches for a Frame by title. The search is for the index+1'th Frame among the currently showing Frames that possess a suitable title.
Parameters:
  title - Frame title or subtitle.
Parameters:
  ce - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of aFrame title.
protected  StringgetGoldenActionProducedMessage()
    
protected  StringgetGoldenTimeoutExpiredMessage()
    
protected  StringgetGoldenWaitingStartedMessage()
    
public  TestOutgetOutput()
     Returns print output streams or writers.
protected  StringgetTimeoutExpiredMessage(long timeSpent)
     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  FramewaitFrame(ComponentChooser ch, int index)
     Waits for a Frame to show. Wait for the index+1'th Frame 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 Frame in the set of currently displayedFrames.
public  FramewaitFrame(ComponentChooser ch)
     Waits for a Frame to show. Wait for a Frame 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 Frame that shows and thatmeets the search criteria.
public  FramewaitFrame(String title, boolean compareExactly, boolean compareCaseSensitive, int index)
     Waits for a Frame to show. Wait for the index+1'th Frame to show with a suitable title.
Parameters:
  title - Frame title or subtitle.
Parameters:
  compareExactly - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of aFrame title.
public  FramewaitFrame(String title, boolean compareExactly, boolean compareCaseSensitive)
     Waits for a Frame to show. Wait for the first Frame to show with a suitable title.
Parameters:
  title - Frame title or subtitle.
Parameters:
  compareExactly - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of aFrame title.


Constructor Detail
FrameWaiter
public FrameWaiter()(Code)
Constructor.




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



getFrame
public static Frame getFrame(ComponentChooser cc)(Code)
Searches for a Frame. Search among the currently showing Frames 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 Frame that is showing and thatmeets the search criteria. If no such Frame can be found, anull reference is returned.



getFrame
public static Frame getFrame(ComponentChooser cc, int index)(Code)
Searches for a Frame. The search proceeds among the currently showing Frames for the index+1'th Frame 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 Frame in the set of currently displayedFrames. The first index is 0. a reference to the index+1'th Frame that is showingand that meets the search criteria. If there are fewer thanindex+1 Frames, a null reference is returned.



getFrame
public static Frame getFrame(String title, boolean ce, boolean cc)(Code)
Searches for a Frame by title. The search proceeds among the currently showing Frames for the first with a suitable title.
Parameters:
  title - Frame title or subtitle.
Parameters:
  ce - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of aFrame title. If false and the search is case sensitive,then the title argument and the Frame 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 Frame 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 Frame 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 Frame that is showing and that has asuitable title. If no such Frame can be found, a nullreference is returned.



getFrame
public static Frame getFrame(String title, boolean ce, boolean cc, int index)(Code)
Searches for a Frame by title. The search is for the index+1'th Frame among the currently showing Frames that possess a suitable title.
Parameters:
  title - Frame title or subtitle.
Parameters:
  ce - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of aFrame title. If false and the search is case sensitive,then the title argument and the Frame 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 Frame 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 Frame title after changing both to upper case.
Parameters:
  cc - If true the search is case sensitive; otherwise, thesearch is case insensitive.
Parameters:
  index - The ordinal index of the Frame in the set of currently displayedFrames. The first index is 0. a reference to the index+1'th Frame that is showingand that has a suitable title. If there are fewer thanindex+1 Frames, a null reference is returned.



getGoldenActionProducedMessage
protected String getGoldenActionProducedMessage()(Code)

See Also:   Waiter.getGoldenActionProducedMessage



getGoldenTimeoutExpiredMessage
protected String getGoldenTimeoutExpiredMessage()(Code)

See Also:   Waiter.getGoldenTimeoutExpiredMessage



getGoldenWaitingStartedMessage
protected String getGoldenWaitingStartedMessage()(Code)

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



getTimeoutExpiredMessage
protected String getTimeoutExpiredMessage(long timeSpent)(Code)
Overrides WindowWaiter.getTimeoutExpiredMessage. Returns the timeout expired message value.
Parameters:
  timeSpent - Time spent for waiting a message tring
See Also:   Waiter.getTimeoutExpiredMessage(long)



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:   FrameWaiter.setTimeouts



getWaitingStartedMessage
protected String getWaitingStartedMessage()(Code)

See Also:   Waiter.getWaitingStartedMessage



setOutput
public void setOutput(TestOut output)(Code)
Defines print output streams or writers.
Parameters:
  output - Identify the streams or writers used for print output.
See Also:   org.netbeans.jemmy.Outputable
See Also:   org.netbeans.jemmy.TestOut
See Also:   FrameWaiter.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:   FrameWaiter.getTimeouts



waitFrame
public Frame waitFrame(ComponentChooser ch, int index) throws InterruptedException(Code)
Waits for a Frame to show. Wait for the index+1'th Frame 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 Frame in the set of currently displayedFrames. The first index is 0. a reference to the index+1'th Frame that showsand that meets the search criteria. If fewer thanindex+1 Frames show up in the allotted time period thena null reference is returned.
throws:
  TimeoutExpiredException -
See Also:   org.netbeans.jemmy.WindowWaiter.actionProduced(Object)
exception:
  InterruptedException -



waitFrame
public Frame waitFrame(ComponentChooser ch) throws InterruptedException(Code)
Waits for a Frame to show. Wait for a Frame 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 Frame that shows and thatmeets the search criteria. If no such Frame can be found within thetime period allotted, a null reference is returned.
throws:
  TimeoutExpiredException -
See Also:   org.netbeans.jemmy.WindowWaiter.actionProduced(Object)
exception:
  InterruptedException -



waitFrame
public Frame waitFrame(String title, boolean compareExactly, boolean compareCaseSensitive, int index) throws InterruptedException(Code)
Waits for a Frame to show. Wait for the index+1'th Frame to show with a suitable title.
Parameters:
  title - Frame title or subtitle.
Parameters:
  compareExactly - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of aFrame title. If false and the search is case sensitive,then the title argument and the Frame 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 Frame 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 Frame 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 Frame in the set of currently displayedFrames with the proper window ownership and a suitable title. Thefirst index is 0. a reference to the index+1'th Frame to show and that has asuitable title. If no such Frame can be found within the time periodallotted, a null reference is returned.
throws:
  TimeoutExpiredException -
See Also:   org.netbeans.jemmy.WindowWaiter.actionProduced(Object)
exception:
  InterruptedException -



waitFrame
public Frame waitFrame(String title, boolean compareExactly, boolean compareCaseSensitive) throws InterruptedException(Code)
Waits for a Frame to show. Wait for the first Frame to show with a suitable title.
Parameters:
  title - Frame title or subtitle.
Parameters:
  compareExactly - If true and the search is case sensitive, then amatch occurs when the title argument is a substring of aFrame title. If false and the search is case sensitive,then the title argument and the Frame 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 Frame 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 Frame 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 Frame to show and that has asuitable title. If no such Frame can be found within the time periodallotted, a null reference is returned.
throws:
  TimeoutExpiredException -
See Also:   org.netbeans.jemmy.WindowWaiter.actionProduced(Object)
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.