1 | public abstract class AbstractConfigGui extends AbstractJMeterGuiComponent {↵ | | 1 | public abstract class AbstractTimerGui extends AbstractJMeterGuiComponent {↵
|
2 | /**↵ | | 2 | /**↵
|
3 | * When a user right-clicks on the component in the test tree, or selects↵ | | 3 | * When a user right-clicks on the component in the test tree, or selects↵
|
4 | * the edit menu when the component is selected, the component will be asked↵ | | 4 | * the edit menu when the component is selected, the component will be asked↵
|
5 | * to return a JPopupMenu that provides all the options available to the↵ | | 5 | * to return a JPopupMenu that provides all the options available to the↵
|
6 | * user from this component.↵ | | 6 | * user from this component.↵
|
7 | * <p>↵ | | 7 | * <p>↵
|
8 | * This implementation returns menu items appropriate for most configuration↵ | | 8 | * This implementation returns menu items appropriate for most timer↵
|
9 | * components.↵ | | 9 | * components.↵
|
10 | * ↵ | | 10 | * ↵
|
11 | * @return a JPopupMenu appropriate for the component.↵ | | 11 | * @return a JPopupMenu appropriate for the component.↵
|
12 | */↵ | | 12 | */↵
|
13 | public JPopupMenu createPopupMenu() {↵ | | 13 | public JPopupMenu createPopupMenu() {↵
|
14 | return MenuFactory.getDefaultConfigElementMenu();↵ | | 14 | return MenuFactory.getDefaultTimerMenu();↵
|
15 | }↵ | | 15 | }↵
|
|
16 | /**↵ | | 16 | /**↵
|
17 | * This is the list of menu categories this gui component will be available↵ | | 17 | * This is the list of menu categories this gui component will be available↵
|
18 | * under. This implementation returns↵ | | 18 | * under. This implementation returns↵
|
19 | * {@link org.apache.jmeter.gui.util.MenuFactory#CONFIG_ELEMENTS}, which is↵ | | 19 | * {@link org.apache.jmeter.gui.util.MenuFactory#TIMERS}, which is↵
|
20 | * appropriate for most configuration components.↵ | | 20 | * appropriate for most timer components.↵
|
21 | * ↵ | | 21 | * ↵
|
22 | * @return a Collection of Strings, where each element is one of the↵ | | 22 | * @return a Collection of Strings, where each element is one of the↵
|
23 | * constants defined in MenuFactory↵ | | 23 | * constants defined in MenuFactory↵
|
24 | */↵ | | 24 | */↵
|
25 | public Collection getMenuCategories() {↵ | | 25 | public Collection getMenuCategories() {↵
|
26 | return Arrays.asList(new String[] { MenuFactory.CONFIG_ELEMENTS });
| | 26 | return Arrays.asList(new String[] { MenuFactory.TIMERS });
|