Apache JMeter

org.apache.jmeter.gui.action
Class ActionRouter

java.lang.Object
  extended by org.apache.jmeter.gui.action.ActionRouter
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public final class ActionRouter
extends java.lang.Object
implements java.awt.event.ActionListener


Method Summary
 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 getAction(java.lang.String 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
protected  void postActionPerformed(java.lang.Class action, java.awt.event.ActionEvent e)
           
protected  void preActionPerformed(java.lang.Class 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

doActionNow

public void doActionNow(java.awt.event.ActionEvent e)
To execute an action immediately in the current thread.

Parameters:
e - the action to execute

getAction

public java.util.Set getAction(java.lang.String actionName)

getAction

public Command getAction(java.lang.String actionName,
                         java.lang.Class actionClass)

getAction

public Command getAction(java.lang.String actionName,
                         java.lang.String className)

addPreActionListener

public 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.

Parameters:
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

removePreActionListener

public 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.

Parameters:
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

addPostActionListener

public 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.

Parameters:
action - the Class of the command for which the listener will notifications for. Class must extend org.apache.jmeter.gui.action.Command.
listener -

removePostActionListener

public 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.

Parameters:
action - the Class of the command for which the listener will notifications for. Class must extend org.apache.jmeter.gui.action.Command.
listener -

preActionPerformed

protected void preActionPerformed(java.lang.Class action,
                                  java.awt.event.ActionEvent e)

postActionPerformed

protected void postActionPerformed(java.lang.Class action,
                                   java.awt.event.ActionEvent e)

getInstance

public static ActionRouter getInstance()
Gets the Instance attribute of the ActionRouter class

Returns:
The Instance value

Apache JMeter

Copyright © 1998-2009 Apache Software Foundation. All Rights Reserved.