public final class ActionRouter
extends java.lang.Object
implements java.awt.event.ActionListener
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
addPostActionListener(java.lang.Class<?> action,
java.awt.event.ActionListener listener)
Allows an ActionListener to receive notification of a command being
executed after the command has executed.
|
void |
addPreActionListener(java.lang.Class<?> action,
java.awt.event.ActionListener listener)
Allows an ActionListener to receive notification of a command being
executed prior to the actual execution of the command.
|
void |
doActionNow(java.awt.event.ActionEvent e)
To execute an action immediately in the current thread.
|
java.util.Set<Command> |
getAction(java.lang.String actionName)
Get the set of
Commands registered under the name
actionName |
Command |
getAction(java.lang.String actionName,
java.lang.Class<?> actionClass)
|
Command |
getAction(java.lang.String actionName,
java.lang.String className)
|
static ActionRouter |
getInstance()
Gets the Instance attribute of the ActionRouter class
|
void |
populateCommandMap()
Only for use by the JMeter.startGui.
|
protected void |
postActionPerformed(java.lang.Class<? extends Command> action,
java.awt.event.ActionEvent e) |
protected void |
preActionPerformed(java.lang.Class<? extends Command> action,
java.awt.event.ActionEvent e) |
void |
removePostActionListener(java.lang.Class<?> action,
java.awt.event.ActionListener listener)
Allows an ActionListener to be removed from receiving notifications of a
command being executed after the command has executed.
|
void |
removePreActionListener(java.lang.Class<?> action,
java.awt.event.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(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void doActionNow(java.awt.event.ActionEvent e)
e - the action to executepublic java.util.Set<Command> getAction(java.lang.String actionName)
Commands registered under the name
actionNamepublic Command getAction(java.lang.String actionName, java.lang.Class<?> actionClass)
public Command getAction(java.lang.String actionName, java.lang.String className)
public void addPreActionListener(java.lang.Class<?> action,
java.awt.event.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(java.lang.Class<?> action,
java.awt.event.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(java.lang.Class<?> action,
java.awt.event.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(java.lang.Class<?> action,
java.awt.event.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 deregisteredprotected void preActionPerformed(java.lang.Class<? extends Command> action, java.awt.event.ActionEvent e)
action - Classe - ActionEventprotected void postActionPerformed(java.lang.Class<? extends Command> action, java.awt.event.ActionEvent e)
action - Classe - ActionEventpublic void populateCommandMap()
public static ActionRouter getInstance()
Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.