|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.jmeter.gui.action.ActionRouter
public final class ActionRouter
| Method Summary | |
|---|---|
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)
Get the Command registered under the name actionName,
that is of Class actionClass |
Command |
getAction(String actionName,
String className)
Get the Command registered under the name actionName
, which class names are equal to className |
static ActionRouter |
getInstance()
Gets the Instance attribute of the ActionRouter class |
protected void |
postActionPerformed(Class<? extends Command> action,
ActionEvent e)
|
protected void |
preActionPerformed(Class<? extends Command> action,
ActionEvent e)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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
actionName
actionName - The name the Commands were registered
Commands for
actionName
public Command getAction(String actionName,
Class<?> actionClass)
Command registered under the name actionName,
that is of Class actionClass
actionName - The name the Commands were registeredactionClass - The class the Commands should be equal to
Command for actionName, or
null if none could be found
public Command getAction(String actionName,
String className)
Command registered under the name actionName
, which class names are equal to className
actionName - The name the Commands were registeredclassName - The name of the class the Commands should be equal to
Command for actionName or
null if none could be found
public 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 notifications
public 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 notifications
public 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 registered
public 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 deregistered
protected void preActionPerformed(Class<? extends Command> action,
ActionEvent e)
protected void postActionPerformed(Class<? extends Command> action,
ActionEvent e)
public static ActionRouter getInstance()
|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||