Interface CommentWindow

All Known Implementing Classes:
DefaultCommentWindow

public interface CommentWindow
Interface implementation defines a way to display step comments during demo or test debug.
Author:
Alexandre Iline (alexandre.iline@sun.com)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the window.
    Returns a message for a case when test needs to be interrupted.
    boolean
    Defines either test execution should be interrupted or not.
    boolean
    Defines either test(demo) has been stopped or not.
    void
    nextStep(String stepComment)
    Should display next step comment.
    void
    Defines window title.
    void
    showFinalComment(String stepComment)
    Method is invoked at the end of test(demo).
  • Method Details

    • isStopped

      boolean isStopped()
      Defines either test(demo) has been stopped or not.
      Returns:
      true if test (demo) execution has been stopped. Like when user is reading step comments. false if test execution can be continued.
    • isInterrupted

      boolean isInterrupted()
      Defines either test execution should be interrupted or not.
      Returns:
      If true, execution will be interrupted.
    • setTitle

      void setTitle(String title)
      Defines window title.
      Parameters:
      title - Title to display.
    • nextStep

      void nextStep(String stepComment)
      Should display next step comment.
      Parameters:
      stepComment - Comments to be displayed.
    • showFinalComment

      void showFinalComment(String stepComment)
      Method is invoked at the end of test(demo).
      Parameters:
      stepComment - Comment to be displayed.
    • close

      void close()
      Closes the window.
    • getInterruptMessage

      String getInterruptMessage()
      Returns a message for a case when test needs to be interrupted.
      Returns:
      Interrupted message if test should be interrupted.