Package org.jbehave.core.context
Class JFrameContextView
- java.lang.Object
-
- org.jbehave.core.context.JFrameContextView
-
- All Implemented Interfaces:
ContextView
public class JFrameContextView extends Object implements ContextView
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jbehave.core.context.ContextView
ContextView.NULL
-
-
Constructor Summary
Constructors Constructor Description JFrameContextView()
Creates view frame of default size - (380 x 85)
-
Method Summary
Modifier and Type Method Description void
close()
protected String
formatText(String story, String scenario, String step)
protected void
initialize()
protected String
labelTemplate()
JFrameContextView
located(int x, int y)
Builder-style way to set the preferred location for the frameprotected long
pauseInMillis()
void
show(String story, String scenario, String step)
JFrameContextView
sized(int width, int height)
Builder-style way to set the preferred size for the frame
-
-
-
Method Detail
-
sized
public JFrameContextView sized(int width, int height)
Builder-style way to set the preferred size for the frame- Parameters:
width
- the widthheight
- 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 screeny
- the y position on screen- Returns:
- The JFrameContextView
-
show
public void show(String story, String scenario, String step)
- Specified by:
show
in interfaceContextView
-
labelTemplate
protected String labelTemplate()
-
pauseInMillis
protected long pauseInMillis()
-
close
public void close()
- Specified by:
close
in interfaceContextView
-
initialize
protected void initialize()
-
-