org.virion.jam.framework
Class Application

java.lang.Object
  extended by org.virion.jam.framework.Application
Direct Known Subclasses:
ConsoleApplication, MultiDocApplication, SingleDocApplication

public abstract class Application
extends Object


Field Summary
protected  AbstractAction aboutAction
           
protected  AbstractAction exitAction
           
protected  AbstractAction helpAction
           
protected  AbstractAction newAction
           
protected  AbstractAction openAction
           
protected  AbstractAction pageSetupAction
           
protected  AbstractAction preferencesAction
           
protected  AbstractAction websiteAction
           
 
Constructor Summary
Application(MenuBarFactory menuBarFactory, String nameString, String aboutString, Icon icon)
           
Application(MenuBarFactory menuBarFactory, String nameString, String aboutString, Icon icon, String websiteURLString, String helpURLString)
           
 
Method Summary
 void addMenuFactory(MenuFactory menuFactory)
           
 void addPreferencesSection(PreferencesSection preferencesSection)
           
 void addRecentFile(File file)
           
 void displayURL(String urlString)
           
 void doAbout()
           
 void doHelp()
           
abstract  DocumentFrame doNew()
           
 DocumentFrame doOpen()
           
 DocumentFrame doOpen(String fileName)
           
abstract  DocumentFrame doOpenFile(File file)
           
 void doPageSetup()
           
 void doPreferences()
           
abstract  void doQuit()
           
 void doWebsite()
           
 Action getAboutAction()
           
static String getAboutString()
           
static Application getApplication()
           
protected abstract  JFrame getDefaultFrame()
           
 Action getExitAction()
           
 Action getHelpAction()
           
static String getHelpURLString()
           
static Icon getIcon()
           
static MenuBarFactory getMenuBarFactory()
           
static String getNameString()
           
 Action getNewAction()
           
 Action getOpenAction()
           
 Action getPageSetupAction()
           
 Action getPreferencesAction()
           
 JMenu getRecentFileMenu()
           
 Action getWebsiteAction()
           
static String getWebsiteURLString()
           
abstract  void initialize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

newAction

protected AbstractAction newAction

openAction

protected AbstractAction openAction

pageSetupAction

protected AbstractAction pageSetupAction

exitAction

protected AbstractAction exitAction

aboutAction

protected AbstractAction aboutAction

preferencesAction

protected AbstractAction preferencesAction

helpAction

protected AbstractAction helpAction

websiteAction

protected AbstractAction websiteAction
Constructor Detail

Application

public Application(MenuBarFactory menuBarFactory,
                   String nameString,
                   String aboutString,
                   Icon icon)

Application

public Application(MenuBarFactory menuBarFactory,
                   String nameString,
                   String aboutString,
                   Icon icon,
                   String websiteURLString,
                   String helpURLString)
Method Detail

getApplication

public static Application getApplication()

getMenuBarFactory

public static MenuBarFactory getMenuBarFactory()

getIcon

public static Icon getIcon()

getNameString

public static String getNameString()

getAboutString

public static String getAboutString()

getWebsiteURLString

public static String getWebsiteURLString()

getHelpURLString

public static String getHelpURLString()

initialize

public abstract void initialize()

addMenuFactory

public void addMenuFactory(MenuFactory menuFactory)

getRecentFileMenu

public JMenu getRecentFileMenu()

addRecentFile

public void addRecentFile(File file)

getDefaultFrame

protected abstract JFrame getDefaultFrame()

doAbout

public void doAbout()

doHelp

public void doHelp()

doWebsite

public void doWebsite()

displayURL

public void displayURL(String urlString)

doPageSetup

public void doPageSetup()

doOpen

public DocumentFrame doOpen()

doOpen

public DocumentFrame doOpen(String fileName)

doNew

public abstract DocumentFrame doNew()

doOpenFile

public abstract DocumentFrame doOpenFile(File file)

doQuit

public abstract void doQuit()

doPreferences

public void doPreferences()

addPreferencesSection

public void addPreferencesSection(PreferencesSection preferencesSection)

getNewAction

public Action getNewAction()

getOpenAction

public Action getOpenAction()

getPageSetupAction

public Action getPageSetupAction()

getExitAction

public Action getExitAction()

getAboutAction

public Action getAboutAction()

getPreferencesAction

public Action getPreferencesAction()

getHelpAction

public Action getHelpAction()

getWebsiteAction

public Action getWebsiteAction()