Home / Development / Documentation / 2.0.44 / OpenAction
TreeGraph 2
 


info.bioinfweb.treegraph.gui.actions.file
Class OpenAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by info.bioinfweb.treegraph.gui.actions.TreeGraphAction
          extended by info.bioinfweb.treegraph.gui.actions.DocumentAction
              extended by info.bioinfweb.treegraph.gui.actions.EditDialogAction
                  extended by info.bioinfweb.treegraph.gui.actions.file.OpenAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class OpenAction
extends EditDialogAction

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, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
OpenAction(MainFrame mainFrame)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Determines the currently active internal frame and passes it to DocumentAction.onActionPerformed(ActionEvent, TreeInternalFrame).
 EditDialog createDialog()
           
 void setEnabled(Document document, TreeSelection selection, NodeBranchDataAdapter tableAdapter)
           
 
Methods inherited from class info.bioinfweb.treegraph.gui.actions.EditDialogAction
getDialog, onActionPerformed
 
Methods inherited from class info.bioinfweb.treegraph.gui.actions.DocumentAction
getMainFrame, oneElementSelected
 
Methods inherited from class info.bioinfweb.treegraph.gui.actions.TreeGraphAction
loadSymbols
 
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

OpenAction

public OpenAction(MainFrame mainFrame)
Method Detail

createDialog

public EditDialog createDialog()
Specified by:
createDialog in class EditDialogAction

actionPerformed

public void actionPerformed(ActionEvent e)
Description copied from class: DocumentAction
Determines the currently active internal frame and passes it to DocumentAction.onActionPerformed(ActionEvent, TreeInternalFrame). If no active frame is found an error message is displayed and DocumentAction.onActionPerformed(ActionEvent, TreeInternalFrame) is not called.

Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class DocumentAction
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

setEnabled

public void setEnabled(Document document,
                       TreeSelection selection,
                       NodeBranchDataAdapter tableAdapter)
Specified by:
setEnabled in class DocumentAction