public final class MenuFactory extends Object
Modifier and Type | Field and Description |
---|---|
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 |
SEPARATOR |
static String |
THREADS |
static String |
TIMERS |
Modifier and Type | Method and Description |
---|---|
static void |
addEditMenu(JPopupMenu menu,
boolean removable) |
static void |
addFileMenu(JPopupMenu pop) |
static void |
addFileMenu(JPopupMenu menu,
boolean addSaveTestFragmentMenu) |
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(String category,
String actionCommand)
Create a menu from a menu category.
|
static JMenuItem |
makeMenuItem(String label,
String name,
String actionCommand)
Create a single menu item
|
static JMenuItem |
makeMenuItemRes(String resource,
String actionCommand)
Create a single menu item from the resource name.
|
static JMenu |
makeMenus(String[] categories,
String label,
String actionCommand) |
static void |
setEnabled(JMenu menu) |
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
public static final String SEPARATOR
public static void addEditMenu(JPopupMenu menu, boolean removable)
public static void addPasteResetMenu(JPopupMenu menu)
public static void addFileMenu(JPopupMenu pop)
public static void addFileMenu(JPopupMenu menu, boolean addSaveTestFragmentMenu)
menu
- JPopupMenuaddSaveTestFragmentMenu
- Add Save as Test Fragment menu if truepublic 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 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 boolean canAddTo(JMeterTreeNode parentNode, TestElement element)
Used by Merge
parentNode
- The JMeterTreeNode
to test, if a new element
can be added to itelement
- top-level test element to be addedpublic static boolean canAddTo(JMeterTreeNode parentNode, JMeterTreeNode[] nodes)
Used by DragNDrop and Paste.
parentNode
- The JMeterTreeNode
to test, if nodes[]
can be added to itnodes
- array of nodes that are to be addedCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.