|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.gui.util.MenuFactory
public final class MenuFactory
Field Summary | |
---|---|
static String |
ASSERTIONS
|
static String |
CONFIG_ELEMENTS
|
static String |
CONTROLLERS
|
static String |
FRAGMENTS
|
static String |
LISTENERS
|
static String |
NON_TEST_ELEMENTS
|
static String |
POST_PROCESSORS
|
static String |
PRE_PROCESSORS
|
static String |
SAMPLERS
|
static String |
THREADS
|
static String |
TIMERS
|
Method Summary | |
---|---|
static void |
addEditMenu(JPopupMenu menu,
boolean removable)
|
static void |
addFileMenu(JPopupMenu menu)
|
static void |
addPasteResetMenu(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 JPopupMenu |
getDefaultAssertionMenu()
|
static JPopupMenu |
getDefaultConfigElementMenu()
|
static JPopupMenu |
getDefaultControllerMenu()
|
static JPopupMenu |
getDefaultExtractorMenu()
|
static JPopupMenu |
getDefaultMenu()
|
static JPopupMenu |
getDefaultSamplerMenu()
|
static JPopupMenu |
getDefaultTimerMenu()
|
static JPopupMenu |
getDefaultVisualizerMenu()
|
static JMenu |
makeMenu(Collection<MenuInfo> menuInfo,
String actionCommand,
String menuName)
Create a menu from a collection of items. |
static JMenu |
makeMenu(String category,
String actionCommand)
Create a menu from a menu category. |
static Component |
makeMenuItem(MenuInfo info,
String actionCommand)
Create a single menu item from a MenuInfo object |
static JMenuItem |
makeMenuItem(String label,
String name,
String actionCommand)
Create a single menu item |
static JMenuItem |
makeMenuItem(String label,
String name,
String actionCommand,
KeyStroke accel)
|
static JMenuItem |
makeMenuItemRes(String resource,
String actionCommand)
Create a single menu item from the resource name. |
static JMenuItem |
makeMenuItemRes(String resource,
String actionCommand,
KeyStroke accel)
|
static JMenu |
makeMenus(String[] categories,
String label,
String actionCommand)
|
static void |
setEnabled(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 String THREADS
public static final String FRAGMENTS
public static final String TIMERS
public static final String CONTROLLERS
public static final String SAMPLERS
public static final String CONFIG_ELEMENTS
public static final String POST_PROCESSORS
public static final String PRE_PROCESSORS
public static final String ASSERTIONS
public static final String NON_TEST_ELEMENTS
public static final String LISTENERS
Method Detail |
---|
public static void addEditMenu(JPopupMenu menu, boolean removable)
public static void addPasteResetMenu(JPopupMenu menu)
public static void addFileMenu(JPopupMenu menu)
public static JMenu makeMenus(String[] categories, String label, String actionCommand)
public static JPopupMenu getDefaultControllerMenu()
public static JPopupMenu getDefaultSamplerMenu()
public static JPopupMenu getDefaultConfigElementMenu()
public static JPopupMenu getDefaultVisualizerMenu()
public static JPopupMenu getDefaultTimerMenu()
public static JPopupMenu getDefaultAssertionMenu()
public static JPopupMenu getDefaultExtractorMenu()
public static JPopupMenu getDefaultMenu()
public static JMenu makeMenu(String category, 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 JMenu makeMenu(Collection<MenuInfo> menuInfo, String actionCommand, String menuName)
menuInfo
- - collection of MenuInfo itemsactionCommand
- - predefined string, e.g. ActionNames.ADDmenuName
-
ActionNames
public static void setEnabled(JMenu menu)
public static JMenuItem makeMenuItem(String label, String name, String actionCommand)
label
- for the MenuItemname
- for the MenuItemactionCommand
- - predefined string, e.g. ActionNames.ADD
ActionNames
public static JMenuItem makeMenuItemRes(String resource, String actionCommand)
resource
- for the MenuItemactionCommand
- - predefined string, e.g. ActionNames.ADD
ActionNames
public static Component makeMenuItem(MenuInfo info, String actionCommand)
info
- the MenuInfo objectactionCommand
- - predefined string, e.g. ActionNames.ADD
ActionNames
public static JMenuItem makeMenuItemRes(String resource, String actionCommand, KeyStroke accel)
public static JMenuItem makeMenuItem(String label, String name, String actionCommand, 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 |