Class JFrameContextView

java.lang.Object
org.jbehave.core.context.JFrameContextView
All Implemented Interfaces:
ContextView

public class JFrameContextView extends Object implements ContextView
  • Field Details

    • frame

      protected JFrame frame
    • label

      protected JLabel label
    • width

      protected int width
    • height

      protected int height
    • x

      protected int x
    • y

      protected int y
  • Constructor Details

    • JFrameContextView

      public JFrameContextView()
      Creates view frame of default size - (380 x 85)
  • Method Details

    • sized

      public JFrameContextView sized(int width, int height)
      Builder-style way to set the preferred size for the frame
      Parameters:
      width - the width
      height - height
      Returns:
      The JFrameContextView
    • located

      public JFrameContextView located(int x, int y)
      Builder-style way to set the preferred location for the frame
      Parameters:
      x - the x position on screen
      y - the y position on screen
      Returns:
      The JFrameContextView
    • show

      public void show(String story, String scenario, String step)
      Specified by:
      show in interface ContextView
    • formatText

      protected String formatText(String story, String scenario, String step)
    • labelTemplate

      protected String labelTemplate()
    • pauseInMillis

      protected long pauseInMillis()
    • close

      public void close()
      Specified by:
      close in interface ContextView
    • initialize

      protected void initialize()