Class DefaultCommentWindow

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, CommentWindow

public class DefaultCommentWindow extends JDialog implements CommentWindow
Default org.netbeans.jemmy.demo.CommentWindow implementation.
Author:
Alexandre Iline (alexandre.iline@sun.com)
See Also:
  • Constructor Details

    • DefaultCommentWindow

      public DefaultCommentWindow(boolean modal)
      Constructs a DefaultCommentWindow object.
      Parameters:
      modal - Display as modal dialog.
    • DefaultCommentWindow

      public DefaultCommentWindow()
      Constructs a DefaultCommentWindow object.
  • Method Details

    • setCommentTimeout

      public void setCommentTimeout(long timeout)
      Specifies the time to display comment.
      Parameters:
      timeout - lond value.
    • isStopped

      public boolean isStopped()
      Description copied from interface: CommentWindow
      Defines either test(demo) has been stopped or not.
      Specified by:
      isStopped in interface CommentWindow
      Returns:
      true if test (demo) execution has been stopped. Like when user is reading step comments. false if test execution can be continued.
    • nextStep

      public void nextStep(String stepComment)
      Description copied from interface: CommentWindow
      Should display next step comment.
      Specified by:
      nextStep in interface CommentWindow
      Parameters:
      stepComment - Comments to be displayed.
    • showFinalComment

      public void showFinalComment(String stepComment)
      Description copied from interface: CommentWindow
      Method is invoked at the end of test(demo).
      Specified by:
      showFinalComment in interface CommentWindow
      Parameters:
      stepComment - Comment to be displayed.
    • isInterrupted

      public boolean isInterrupted()
      Description copied from interface: CommentWindow
      Defines either test execution should be interrupted or not.
      Specified by:
      isInterrupted in interface CommentWindow
      Returns:
      If true, execution will be interrupted.
    • getInterruptMessage

      public String getInterruptMessage()
      Description copied from interface: CommentWindow
      Returns a message for a case when test needs to be interrupted.
      Specified by:
      getInterruptMessage in interface CommentWindow
      Returns:
      Interrupted message if test should be interrupted.
    • close

      public void close()
      Description copied from interface: CommentWindow
      Closes the window.
      Specified by:
      close in interface CommentWindow