public final class ActionRouter extends Object implements ActionListener
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
void |
addPostActionListener(Class<?> action,
ActionListener listener)
Allows an ActionListener to receive notification of a command being
executed after the command has executed.
|
void |
addPreActionListener(Class<?> action,
ActionListener listener)
Allows an ActionListener to receive notification of a command being
executed prior to the actual execution of the command.
|
void |
doActionNow(ActionEvent e)
To execute an action immediately in the current thread.
|
Set<Command> |
getAction(String actionName)
Get the set of
Commands registered under the name
actionName |
Command |
getAction(String actionName,
Class<?> actionClass)
|
Command |
getAction(String actionName,
String className)
|
static ActionRouter |
getInstance()
Gets the Instance attribute of the ActionRouter class
|
void |
populateCommandMap()
Only for use by the JMeter.startGui.
|
void |
removePostActionListener(Class<?> action,
ActionListener listener)
Allows an ActionListener to be removed from receiving notifications of a
command being executed after the command has executed.
|
void |
removePreActionListener(Class<?> action,
ActionListener listener)
Allows an ActionListener to be removed from receiving notifications of a
command being executed prior to the actual execution of the command.
|
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void doActionNow(ActionEvent e)
e - the action to executepublic Set<Command> getAction(String actionName)
Commands registered under the name
actionNamepublic void addPreActionListener(Class<?> action, ActionListener listener)
action - the Class of the command for which the listener will
notifications for. Class must extend
org.apache.jmeter.gui.action.Command.listener - the ActionListener to receive the notificationspublic void removePreActionListener(Class<?> action, ActionListener listener)
action - the Class of the command for which the listener will
notifications for. Class must extend
org.apache.jmeter.gui.action.Command.listener - the ActionListener to receive the notificationspublic void addPostActionListener(Class<?> action, ActionListener listener)
action - the Class of the command for which the listener will
notifications for. Class must extend
org.apache.jmeter.gui.action.Command.listener - The ActionListener to be registeredpublic void removePostActionListener(Class<?> action, ActionListener listener)
action - the Class of the command for which the listener will
notifications for. Class must extend
org.apache.jmeter.gui.action.Command.listener - The ActionListener that should be deregisteredpublic void populateCommandMap()
public static ActionRouter getInstance()
Copyright © 1998-2022 Apache Software Foundation. All Rights Reserved.