BioLegato 0.7.0 GDE Menu support plugin

org.biolegato.ezmenu
Class ActionThread

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.biolegato.ezmenu.ActionThread
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class ActionThread
extends javax.swing.AbstractAction

Class used for making abstract actions which launch threads.

Author:
Graham Alvare, Brian Fristensky
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ActionThread(java.lang.String name, java.lang.Runnable run)
          Creates a new instance of ActionThread.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Runs the command.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionThread

public ActionThread(java.lang.String name,
                    java.lang.Runnable run)
Creates a new instance of ActionThread.

Parameters:
name - the name of the action
run - the command for the thread to run
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Runs the command.

Parameters:
e - ignored by this function

BioLegato 0.7.0 GDE Menu support plugin

Copyright © 2008-2010 University of Manitoba.