Apache JMeter | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
JFrame
org.apache.jmeter.gui.ReportMainFrame
Nested Class Summary | |
protected static class |
|
Field Summary | |
protected JScrollPane |
|
protected ReportMenuBar |
|
protected JTree |
|
protected JScrollPane |
|
Constructor Summary | |
|
Method Summary | |
void |
|
protected JScrollPane |
|
protected Component |
|
protected JScrollPane |
|
void |
|
protected TreeCellRenderer |
|
JTree |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void | |
void |
|
void |
|
protected JScrollPane mainPanel
The main panel where components display their GUIs.
protected JTree tree
The test tree.
protected JScrollPane treePanel
The panel where the test tree is shown.
public ReportMainFrame()
public ReportMainFrame(ActionListener actionHandler, TreeModel treeModel, ReportTreeListener treeListener)
Create a new JMeter frame.
- Parameters:
actionHandler
- this parameter is not usedtreeModel
- the model for the test treetreeListener
- the listener for the test tree
public void closeMenu()
Close the currently selected menu.
protected JScrollPane createMainPanel()
Create the main panel where components can display their GUIs.
- Returns:
- the main scroll pane
protected Component createToolBar()
Create the JMeter tool bar pane containing the running indicator.
- Returns:
- a panel containing the running indicator
protected JScrollPane createTreePanel()
Create the panel where the GUI representation of the test tree is displayed. The tree should already be created before calling this method.
- Returns:
- a scroll pane containing the test tree GUI
public void drawDraggedComponent(Component dragIcon, int x, int y)
protected TreeCellRenderer getCellRenderer()
Create the tree cell renderer used to draw the nodes in the test tree.
- Returns:
- a renderer to draw the test tree nodes
public JTree getTree()
public void setEditAddEnabled(boolean enabled)
Specify whether or not the Edit|Add menu item should be enabled.
- Parameters:
enabled
- true if the menu item should be enabled, false otherwise
public void setEditAddMenu(JMenu menu)
Set the menu that should be used for the Edit|Add menu.
- Parameters:
menu
- the new Edit|Add menu
public void setEditEnabled(boolean enabled)
Specify whether or not the Edit menu item should be enabled.
- Parameters:
enabled
- true if the menu item should be enabled, false otherwise
public void setEditMenu(JPopupMenu menu)
Set the menu that should be used for the Edit menu.
- Parameters:
menu
- the new Edit menu
public void setEditRemoveEnabled(boolean enabled)
Specify whether or not the Edit|Remove menu item should be enabled.
- Parameters:
enabled
- true if the menu item should be enabled, false otherwise
public void setExtendedFrameTitle(String fname)
public void setFileLoadEnabled(boolean enabled)
Specify whether or not the File|Load menu item should be enabled.
- Parameters:
enabled
- true if the menu item should be enabled, false otherwise
public void setFileSaveEnabled(boolean enabled)
Specify whether or not the File|Save menu item should be enabled.
- Parameters:
enabled
- true if the menu item should be enabled, false otherwise
public void setMainPanel(JComponent comp)
public void showStoppingMessage(String host)
Show a dialog indicating that JMeter threads are stopping on a particular host.
- Parameters:
host
- the host where JMeter threads are stopping
public void testEnded()
Not sure if this should be in the ReportMainFrame, since the report component doesn't really test, it generates reports. for now, I will use it to trigger reporting. Later we can refactor MainFrame and create an abstract base class.
- Specified by:
- testEnded in interface TestListener
public void testEnded(String host)
Not sure if this should be in the ReportMainFrame, since the report component doesn't really test, it generates reports. for now, I will use it to trigger reporting. Later we can refactor MainFrame and create an abstract base class.
- Specified by:
- testEnded in interface TestListener
public void testIterationStart(LoopIterationEvent event)
- Specified by:
- testIterationStart in interface TestListener
public void testStarted()
Not sure if this should be in the ReportMainFrame, since the report component doesn't really test, it generates reports. for now, I will use it to trigger reporting. Later we can refactor MainFrame and create an abstract base class.
- Specified by:
- testStarted in interface TestListener
public void testStarted(String host)
Not sure if this should be in the ReportMainFrame, since the report component doesn't really test, it generates reports. for now, I will use it to trigger reporting. Later we can refactor MainFrame and create an abstract base class.
- Specified by:
- testStarted in interface TestListener