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 voidclose()protected StringformatText(String story, String scenario, String step)protected voidinitialize()protected StringlabelTemplate()JFrameContextViewlocated(int x, int y)Builder-style way to set the preferred location for the frameprotected longpauseInMillis()voidshow(String story, String scenario, String step)JFrameContextViewsized(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:
showin interfaceContextView
-
labelTemplate
protected String labelTemplate()
-
pauseInMillis
protected long pauseInMillis()
-
close
public void close()
- Specified by:
closein interfaceContextView
-
initialize
protected void initialize()
-
-