|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.gui.util.MenuFactory
public final class MenuFactory
Field Summary | |
---|---|
static java.lang.String |
ASSERTIONS
|
static java.lang.String |
CONFIG_ELEMENTS
|
static java.lang.String |
CONTROLLERS
|
static java.lang.String |
LISTENERS
|
static java.lang.String |
NON_TEST_ELEMENTS
|
static java.lang.String |
POST_PROCESSORS
|
static java.lang.String |
PRE_PROCESSORS
|
static java.lang.String |
SAMPLERS
|
static java.lang.String |
TIMERS
|
Method Summary | |
---|---|
static void |
addEditMenu(javax.swing.JPopupMenu menu,
boolean removable)
|
static void |
addFileMenu(javax.swing.JPopupMenu menu)
|
static void |
addPasteResetMenu(javax.swing.JPopupMenu menu)
|
static boolean |
canAddTo(JMeterTreeNode parentNode,
JMeterTreeNode[] nodes)
Determine whether or not nodes can be added to this parent. |
static boolean |
canAddTo(JMeterTreeNode parentNode,
TestElement element)
Determine whether or not nodes can be added to this parent. |
static javax.swing.JPopupMenu |
getDefaultAssertionMenu()
|
static javax.swing.JPopupMenu |
getDefaultConfigElementMenu()
|
static javax.swing.JPopupMenu |
getDefaultControllerMenu()
|
static javax.swing.JPopupMenu |
getDefaultExtractorMenu()
|
static javax.swing.JPopupMenu |
getDefaultSamplerMenu()
|
static javax.swing.JPopupMenu |
getDefaultTimerMenu()
|
static javax.swing.JPopupMenu |
getDefaultVisualizerMenu()
|
static javax.swing.JMenu |
makeMenu(java.util.Collection menuInfo,
java.lang.String actionCommand,
java.lang.String menuName)
Create a menu from a collection of items. |
static javax.swing.JMenu |
makeMenu(java.lang.String category,
java.lang.String actionCommand)
Create a menu from a menu category. |
static java.awt.Component |
makeMenuItem(MenuInfo info,
java.lang.String actionCommand)
Create a single menu item from a MenuInfo object |
static javax.swing.JMenuItem |
makeMenuItem(java.lang.String label,
java.lang.String name,
java.lang.String actionCommand)
Create a single menu item |
static javax.swing.JMenuItem |
makeMenuItem(java.lang.String label,
java.lang.String name,
java.lang.String actionCommand,
javax.swing.KeyStroke accel)
|
static javax.swing.JMenuItem |
makeMenuItemRes(java.lang.String resource,
java.lang.String actionCommand)
Create a single menu item from the resource name. |
static javax.swing.JMenuItem |
makeMenuItemRes(java.lang.String resource,
java.lang.String actionCommand,
javax.swing.KeyStroke accel)
|
static javax.swing.JMenu |
makeMenus(java.lang.String[] categories,
java.lang.String label,
java.lang.String actionCommand)
|
static void |
setEnabled(javax.swing.JMenu menu)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TIMERS
public static final java.lang.String CONTROLLERS
public static final java.lang.String SAMPLERS
public static final java.lang.String CONFIG_ELEMENTS
public static final java.lang.String POST_PROCESSORS
public static final java.lang.String PRE_PROCESSORS
public static final java.lang.String ASSERTIONS
public static final java.lang.String NON_TEST_ELEMENTS
public static final java.lang.String LISTENERS
Method Detail |
---|
public static void addEditMenu(javax.swing.JPopupMenu menu, boolean removable)
public static void addPasteResetMenu(javax.swing.JPopupMenu menu)
public static void addFileMenu(javax.swing.JPopupMenu menu)
public static javax.swing.JMenu makeMenus(java.lang.String[] categories, java.lang.String label, java.lang.String actionCommand)
public static javax.swing.JPopupMenu getDefaultControllerMenu()
public static javax.swing.JPopupMenu getDefaultSamplerMenu()
public static javax.swing.JPopupMenu getDefaultConfigElementMenu()
public static javax.swing.JPopupMenu getDefaultVisualizerMenu()
public static javax.swing.JPopupMenu getDefaultTimerMenu()
public static javax.swing.JPopupMenu getDefaultAssertionMenu()
public static javax.swing.JPopupMenu getDefaultExtractorMenu()
public static javax.swing.JMenu makeMenu(java.lang.String category, java.lang.String actionCommand)
category
- - predefined string (used as key for menuMap HashMap and messages.properties lookup)actionCommand
- - predefined string, e.g. ActionNames.ADD
ActionNames
public static javax.swing.JMenu makeMenu(java.util.Collection menuInfo, java.lang.String actionCommand, java.lang.String menuName)
menuInfo
- - collection of MenuInfo itemsactionCommand
- - predefined string, e.g. ActionNames.ADDmenuName
-
ActionNames
public static void setEnabled(javax.swing.JMenu menu)
public static javax.swing.JMenuItem makeMenuItem(java.lang.String label, java.lang.String name, java.lang.String actionCommand)
label
- for the MenuItemname
- for the MenuItemactionCommand
- - predefined string, e.g. ActionNames.ADD
ActionNames
public static javax.swing.JMenuItem makeMenuItemRes(java.lang.String resource, java.lang.String actionCommand)
resource
- for the MenuItemactionCommand
- - predefined string, e.g. ActionNames.ADD
ActionNames
public static java.awt.Component makeMenuItem(MenuInfo info, java.lang.String actionCommand)
info
- the MenuInfo objectactionCommand
- - predefined string, e.g. ActionNames.ADD
ActionNames
public static javax.swing.JMenuItem makeMenuItemRes(java.lang.String resource, java.lang.String actionCommand, javax.swing.KeyStroke accel)
public static javax.swing.JMenuItem makeMenuItem(java.lang.String label, java.lang.String name, java.lang.String actionCommand, javax.swing.KeyStroke accel)
public static boolean canAddTo(JMeterTreeNode parentNode, TestElement element)
parentNode
- element
- - top-level test element to be added
public static boolean canAddTo(JMeterTreeNode parentNode, JMeterTreeNode[] nodes)
parentNode
- nodes
- - array of nodes that are to be added
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |