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

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.file.NewDocumentAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class NewDocumentAction
extends DocumentAction
implements javax.swing.Action

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
NewDocumentAction(MainFrame mainFrame)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
protected  void onActionPerformed(java.awt.event.ActionEvent e, TreeInternalFrame frame)
           
 void setEnabled(Document document, TreeSelection selection)
           
 
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
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Constructor Detail

NewDocumentAction

public NewDocumentAction(MainFrame mainFrame)
Method Detail

setEnabled

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

onActionPerformed

protected void onActionPerformed(java.awt.event.ActionEvent e,
                                 TreeInternalFrame frame)
Specified by:
onActionPerformed in class DocumentAction

actionPerformed

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