info.bioinfweb.treegraph.gui.actions.file
Class NewDocumentAction
java.lang.Object
  
javax.swing.AbstractAction
      
info.bioinfweb.treegraph.gui.actions.TreeGraphAction
          
info.bioinfweb.treegraph.gui.actions.DocumentAction
              
info.bioinfweb.treegraph.gui.actions.file.NewDocumentAction
- All Implemented Interfaces: 
 - ActionListener, Serializable, Cloneable, EventListener, Action
 
public class NewDocumentAction
- extends DocumentAction
- implements Action
  
- See Also:
 - Serialized Form
 
 
 
| 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 | 
 
 
 
 
 
 
 
 
NewDocumentAction
public NewDocumentAction(MainFrame mainFrame)
setEnabled
public void setEnabled(Document document,
                       TreeSelection selection,
                       NodeBranchDataAdapter tableAdapter)
- Specified by:
 setEnabled in class DocumentAction
 
 
onActionPerformed
protected void onActionPerformed(ActionEvent e,
                                 TreeInternalFrame frame)
- Description copied from class: 
DocumentAction 
- Subclasses should implement this method instead of overriding 
 
DocumentAction.actionPerformed(ActionEvent).
- Specified by:
 onActionPerformed in class DocumentAction
 
frame - the internal frame which was active while the user performed this action
 
 
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)