org.norvelle.textcite.gui.action
Class OpenCitebookAction

java.lang.Object
  extended by org.norvelle.textcite.gui.action.OpenCitebookAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class OpenCitebookAction
extends java.lang.Object
implements java.awt.event.ActionListener

OpenCitebookAction: An Action class that can be assigned directly to a JMenuItem or ToolbarButton, that saves the current CiteBook. Provides a file chooser, allowing the user to choose the CiteBook that he wishes to open, then calls the Application.load() method to actually perform the data load.

Author:
Erik Norvelle

Constructor Summary
OpenCitebookAction(MainFrame frame)
          Construct the Action, passing the action type as parameter.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
          Called by the menu or toolbar when the user chooses the action.
 void performOpen()
          File | Open Citebook action performed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenCitebookAction

public OpenCitebookAction(MainFrame frame)
Construct the Action, passing the action type as parameter.

Parameters:
actionType - The type of action, either SAVE_ACTION or SAVE_AS_ACTION
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
Called by the menu or toolbar when the user chooses the action. Calls the performOpen method.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

performOpen

public void performOpen()
File | Open Citebook action performed.