org.apache.jmeter.gui.util

Class ReportMenuBar

Implemented Interfaces:
LocaleChangeListener

public class ReportMenuBar
extends JMenuBar
implements LocaleChangeListener

This is a version of the MenuBar for the reporting tool. I started with the existing jmeter menubar.

Field Summary

static String
ACTION_SHUTDOWN
static String
ACTION_START
static String
ACTION_STOP

Constructor Summary

ReportMenuBar()

Method Summary

void
createMenuBar()
Creates the MenuBar for this application.
void
localeChanged(LocaleChangeEvent event)
Processes a locale change notification.
void
setEditAddEnabled(boolean enabled)
void
setEditAddMenu(JMenu menu)
void
setEditEnabled(boolean enabled)
void
setEditMenu(JPopupMenu menu)
void
setEditRemoveEnabled(boolean enabled)
void
setEnabled(boolean enable)
void
setFileLoadEnabled(boolean enabled)
void
setFileSaveEnabled(boolean enabled)
void
setRunning(boolean running, String host)

Field Details

ACTION_SHUTDOWN

public static final String ACTION_SHUTDOWN

ACTION_START

public static final String ACTION_START

ACTION_STOP

public static final String ACTION_STOP

Constructor Details

ReportMenuBar

public ReportMenuBar()

Method Details

createMenuBar

public void createMenuBar()
Creates the MenuBar for this application. I believe in my heart that this should be defined in a file somewhere, but that is for later.

localeChanged

public void localeChanged(LocaleChangeEvent event)
Processes a locale change notification. Changes the texts in all menus to the new language.
Specified by:
localeChanged in interface LocaleChangeListener

setEditAddEnabled

public void setEditAddEnabled(boolean enabled)

setEditAddMenu

public void setEditAddMenu(JMenu menu)

setEditEnabled

public void setEditEnabled(boolean enabled)

setEditMenu

public void setEditMenu(JPopupMenu menu)

setEditRemoveEnabled

public void setEditRemoveEnabled(boolean enabled)

setEnabled

public void setEnabled(boolean enable)

setFileLoadEnabled

public void setFileLoadEnabled(boolean enabled)

setFileSaveEnabled

public void setFileSaveEnabled(boolean enabled)

setRunning

public void setRunning(boolean running,
                       String host)

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.