public final class MenuFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ASSERTIONS |
static java.lang.String |
CONFIG_ELEMENTS |
static java.lang.String |
CONTROLLERS |
static java.lang.String |
FRAGMENTS |
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 |
SEPARATOR |
static java.lang.String |
THREADS |
static java.lang.String |
TIMERS |
Modifier and Type | Method and Description |
---|---|
static void |
addEditMenu(javax.swing.JPopupMenu menu,
boolean removable) |
static void |
addFileMenu(javax.swing.JPopupMenu pop) |
static void |
addFileMenu(javax.swing.JPopupMenu menu,
boolean addSaveTestFragmentMenu) |
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 |
getDefaultMenu() |
static javax.swing.JPopupMenu |
getDefaultSamplerMenu() |
static javax.swing.JPopupMenu |
getDefaultTimerMenu() |
static javax.swing.JPopupMenu |
getDefaultVisualizerMenu() |
static javax.swing.JMenu |
makeMenu(java.lang.String category,
java.lang.String actionCommand)
Create a menu from a menu category.
|
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 |
makeMenuItemRes(java.lang.String resource,
java.lang.String actionCommand)
Create a single menu item from the resource name.
|
static javax.swing.JMenu |
makeMenus(java.lang.String[] categories,
java.lang.String label,
java.lang.String actionCommand) |
static void |
setEnabled(javax.swing.JMenu menu) |
public static final java.lang.String THREADS
public static final java.lang.String FRAGMENTS
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
public static final java.lang.String SEPARATOR
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 pop)
public static void addFileMenu(javax.swing.JPopupMenu menu, boolean addSaveTestFragmentMenu)
menu
- JPopupMenuaddSaveTestFragmentMenu
- Add Save as Test Fragment menu if truepublic 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.JPopupMenu getDefaultMenu()
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 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 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.