phenote.gui.actions
Class NCBIQueryAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by phenote.gui.actions.NCBIQueryAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class NCBIQueryAction
extends javax.swing.AbstractAction

as you get into bigger examples with lots and lots of lookups to external databases, you should probably create a wrapper for OBOSession where the getObject(id) method automatically creates these instances. That way you can encapsulate the whole fetching/caching thing inside the OBOSession.

Author:
Nicole Washington
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
NCBIQueryAction()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 boolean isEnabled()
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NCBIQueryAction

public NCBIQueryAction()
Method Detail

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface javax.swing.Action
Overrides:
isEnabled in class javax.swing.AbstractAction

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)