story.flashback.gui
Class FlashbackGUI

java.lang.Object
  extended by story.dbcore.gui.CoreBrowser
      extended by story.flashback.gui.FlashbackGUI
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class FlashbackGUI
extends CoreBrowser
implements java.awt.event.ActionListener

This class extends CoreBrowser, the DB-Core GUI, adding functionality that is specific to Flashback (such as export to BibTEX).


Constructor Summary
FlashbackGUI(DBCoreInterface dbci)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Switchboard for processing GUI action events
 void associateDirectory()
          Choose and associate a file with a Reference.
 void associateFile()
          Choose and associate a file with a Reference.
 void associateURL()
          Enter a URL to associate with a Reference.
 javax.swing.JMenuBar createMenuBar()
          Override of CoreBrowser's createMenuBar that does some surgery on that function's result to add Flashback-specific functions
 java.lang.Object getAssociation(NodeAddress referenceNode)
          Given a NodeAddress of a Reference node, return the association: either a File object, a URL object or null.
 void launchFlashback()
          Launch the app
 void launchFlashback(java.lang.String fileToOpen)
          Launch the app and open a file
 void openAssociation()
          Open an association.
 void unsetAssociation()
          Remove an association.
 void updateForestSensitiveMenus()
          Override of CoreBrowser's updateForestSensitiveMenus that supplements the CoreBrowser function with updates for Flashback-specific menu items
 
Methods inherited from class story.dbcore.gui.CoreBrowser
centerJFrame, executeShell, getShowAllRepTab, getTreeView, launchBrowser, link, setShowAllRepTab, unlink
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlashbackGUI

public FlashbackGUI(DBCoreInterface dbci)
             throws Scheherexception
Throws:
Scheherexception
Method Detail

launchFlashback

public void launchFlashback()
                     throws Scheherexception
Launch the app

Throws:
Scheherexception

launchFlashback

public void launchFlashback(java.lang.String fileToOpen)
                     throws Scheherexception
Launch the app and open a file

Throws:
Scheherexception

createMenuBar

public javax.swing.JMenuBar createMenuBar()
Override of CoreBrowser's createMenuBar that does some surgery on that function's result to add Flashback-specific functions


updateForestSensitiveMenus

public void updateForestSensitiveMenus()
Override of CoreBrowser's updateForestSensitiveMenus that supplements the CoreBrowser function with updates for Flashback-specific menu items


associateFile

public void associateFile()
Choose and associate a file with a Reference.


associateDirectory

public void associateDirectory()
Choose and associate a file with a Reference.


associateURL

public void associateURL()
Enter a URL to associate with a Reference.


getAssociation

public java.lang.Object getAssociation(NodeAddress referenceNode)
                                throws Scheherexception
Given a NodeAddress of a Reference node, return the association: either a File object, a URL object or null.

Throws:
Scheherexception

unsetAssociation

public void unsetAssociation()
Remove an association.


openAssociation

public void openAssociation()
Open an association.


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Switchboard for processing GUI action events

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class CoreBrowser


Copyright © 2011 David K. Elson. All Rights Reserved.