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