|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.norvelle.textcite.gui.action.SaveCitebookAction
public class SaveCitebookAction
SaveCitebookAction: An Action class that can be assigned directly to a JMenuItem or ToolbarButton, that saves the current CiteBook. Can be instantiated either to perform a Save As, or to perform a simple Save action.
Field Summary | |
---|---|
static int |
SAVE_ACTION
|
static int |
SAVE_AS_ACTION
|
Constructor Summary | |
---|---|
SaveCitebookAction(int actionType,
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 |
performSave()
File | Save Citebook action performed. |
void |
performSaveAs()
File | Save Citebook As action performed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SAVE_ACTION
public static final int SAVE_AS_ACTION
Constructor Detail |
---|
public SaveCitebookAction(int actionType, MainFrame frame)
actionType
- The type of action, either SAVE_ACTION or SAVE_AS_ACTIONMethod Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent arg0)
actionPerformed
in interface java.awt.event.ActionListener
public void performSaveAs()
actionEvent
- ActionEventpublic void performSave()
actionEvent
- ActionEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |