gov.lbl.genome.gui.action
Class VAbstractAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by gov.lbl.genome.gui.action.VAbstractAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.lang.Runnable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
AboutAction, AddAction, BackAction, DetailsAction, ForwardAction, HelpAction, PageSetupAction, PrintAction, PrinterSetupAction, RemoveAction, SaveAsAction, ScrollBackwardAction, ScrollForwardAction, SettingsAction, StatAction, SwapCurvesAction, UCSCBrowserAction, ZoomInAction, ZoomOutAction

public abstract class VAbstractAction
extends javax.swing.AbstractAction
implements java.lang.Runnable

Title: VAbstractAction

Description: Extension of the AbstractAction Class

Copyright: Copyright (c) 2002 Ernest Orlando Lawrence Berkeley National Laboratory

Company: LBNL

See Also:
Serialized Form

Field Summary
protected  VAbstractAction action
           
protected  javax.swing.ImageIcon actionIcon
           
protected  java.lang.Thread actionThread
           
protected  long numberOfActions
           
protected  Parameter param
           
 VistaApp va
           
 
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
VAbstractAction(VistaApp vapp)
          VAbstractAction
VAbstractAction(VistaApp vapp, java.lang.String name)
          VAbstractAction
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Usually you do not touch this method and use overriden run() But if you want to execute your action in the same thread, then override it.
abstract  void run()
          Override run method if you want to execute action in a separate thread.
 
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
 

Field Detail

actionIcon

protected javax.swing.ImageIcon actionIcon

param

protected Parameter param

action

protected VAbstractAction action

va

public VistaApp va

actionThread

protected java.lang.Thread actionThread

numberOfActions

protected volatile long numberOfActions
Constructor Detail

VAbstractAction

public VAbstractAction(VistaApp vapp)
VAbstractAction

Parameters:
vapp - VistaApp

VAbstractAction

public VAbstractAction(VistaApp vapp,
                       java.lang.String name)
VAbstractAction

Parameters:
vapp - VistaApp
name - String
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Usually you do not touch this method and use overriden run() But if you want to execute your action in the same thread, then override it. Don't forget to call super.actionPerformed(e) as a first method.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - ActionEvent
See Also:
run()

run

public abstract void run()
Override run method if you want to execute action in a separate thread.

Specified by:
run in interface java.lang.Runnable
See Also:
actionPerformed(ActionEvent)