org.apache.jmeter.gui
Class MainFrame
JFrame
org.apache.jmeter.gui.MainFrame
- Remoteable, TestListener
public class MainFrame
extends JFrame
The main JMeter frame, containing the menu bar, test tree, and an area for
JMeter component GUIs.
MainFrame
public MainFrame()
Do not use - only needed for JUnit tests
Default constructor for the JMeter frame. This constructor will not
properly initialize the tree, so don't use it.
MainFrame
public MainFrame(ActionListener actionHandler,
TreeModel treeModel,
JMeterTreeListener treeListener)
Create a new JMeter frame.
actionHandler
- this parameter is not usedtreeModel
- the model for the test treetreeListener
- the listener for the test tree
closeMenu
public void closeMenu()
Close the currently selected menu.
drawDraggedComponent
public void drawDraggedComponent(Component dragIcon,
int x,
int y)
Repaint pieces of the GUI as needed while dragging. This method should
only be called from the Swing event thread.
dragIcon
- the component being draggedx
- the current mouse x coordinatey
- the current mouse y coordinate
getTree
public JTree getTree()
setEditAddEnabled
public void setEditAddEnabled(boolean enabled)
Specify whether or not the Edit|Add menu item should be enabled.
enabled
- true if the menu item should be enabled, false otherwise
setEditAddMenu
public void setEditAddMenu(JMenu menu)
Set the menu that should be used for the Edit|Add menu.
menu
- the new Edit|Add menu
setEditEnabled
public void setEditEnabled(boolean enabled)
Specify whether or not the Edit menu item should be enabled.
enabled
- true if the menu item should be enabled, false otherwise
setEditMenu
public void setEditMenu(JPopupMenu menu)
Set the menu that should be used for the Edit menu.
setEditRemoveEnabled
public void setEditRemoveEnabled(boolean enabled)
Specify whether or not the Edit|Remove menu item should be enabled.
enabled
- true if the menu item should be enabled, false otherwise
setExtendedFrameTitle
public void setExtendedFrameTitle(String fname)
setFileLoadEnabled
public void setFileLoadEnabled(boolean enabled)
Specify whether or not the File|Load menu item should be enabled.
enabled
- true if the menu item should be enabled, false otherwise
setFileRevertEnabled
public void setFileRevertEnabled(boolean enabled)
Specify whether or not the File|Revert item should be enabled.
enabled
- true if the menu item should be enabled, false otherwise
setFileSaveEnabled
public void setFileSaveEnabled(boolean enabled)
Specify whether or not the File|Save menu item should be enabled.
enabled
- true if the menu item should be enabled, false otherwise
setMainPanel
public void setMainPanel(JComponent comp)
setProjectFileLoaded
public void setProjectFileLoaded(String file)
Specify the project file that was just loaded
file
- - the full path to the file that was loaded
showStoppingMessage
public void showStoppingMessage(String host)
Show a dialog indicating that JMeter threads are stopping on a particular
host.
host
- the host where JMeter threads are stopping
testEnded
public void testEnded()
Called when a test is ended on the local system. This implementation
disables the menubar, stops the running indicator, and closes the
stopping message dialog.
- testEnded in interface TestListener
testEnded
public void testEnded(String host)
Called when a test is ended on the remote system. This implementation
stops the running indicator and closes the stopping message dialog.
- testEnded in interface TestListener
host
- the host where the test is ending
testStarted
public void testStarted()
Called when a test is started on the local system. This implementation
sets the running indicator and ensures that the menubar is enabled and in
the running state.
- testStarted in interface TestListener
testStarted
public void testStarted(String host)
Called when a test is started on a specific host. This implementation
sets the running indicator and ensures that the menubar is in the running
state.
- testStarted in interface TestListener
host
- the host where the test is starting
updateCounts
public void updateCounts()
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.