|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.application.ActionFactory
ActionFactory is a factory class with methods that can instantiate actions for use in menus and the toolbar. All of the actions are standard document-based application actions. In addition to actions, it also defines menu handlers that get invoked when a menu is activated. Typically it menu handlers are used to dynamically populate menus. For example there is "documents" submenu under the "Window" menu that populates itself upon selection with a list of menu items having one menu item for each open document.
| Method Summary | |
static javax.swing.Action |
captureWindowAsImageAction(XalDocument document)
Make an action that captures the main window corresponding to the document as a PNG image and allows the user to save it to a file. |
protected static javax.swing.Action |
cascadeWindowsAction(XalDocument document)
Cascade all document windows relative to the location of the window where the action was fired. |
static javax.swing.Action |
closeAllDocumentsAction()
Make an action that closes all documents in the application which leads to termination of the application. |
static javax.swing.Action |
closeDocumentAction(XalDocument document)
Make an action that closes the document where the from which the menu item was selected. |
static javax.swing.event.MenuListener |
documentsHandler()
Make a menu handler that updates the list of open documents that should appear in the documents submenu under the Window menu. |
static javax.swing.Action |
editPreferencesAction(XalDocument document)
Make an action for editing a preference panel. |
static javax.swing.Action |
hideAllWindowsAction()
Make an action taht hides all windows. |
static javax.swing.Action |
newAction()
Make an action that creates a new document in the application. |
static javax.swing.Action |
openDocumentAction()
Make an action that presents the user with an open file dialog. |
static javax.swing.event.MenuListener |
openRecentHandler()
Make a menu handler that is used to generate a list of recently opened files to be available under the "Open Recent" submenu of the "File" menu. |
protected static javax.swing.Action |
openURLAction(java.lang.String urlSpec)
Make an action that is used internally to open a file as specified by the given URL specification into a new document. |
static javax.swing.Action |
pageSetupAction()
Make an action that shows a standard page-setup dialog box for formatting printing. |
static javax.swing.Action |
printAction(XalDocument document)
Make an action that shows a standard page-setup dialog box for formatting printing. |
static javax.swing.Action |
quitAction()
Make an action for quitting the application. |
static javax.swing.Action |
revertToSavedAction(XalDocument document)
Make an action that reverts a document to its source disposing of any changes the user has made to the document. |
static javax.swing.Action |
saveAllDocumentsAction()
Make an action that saves all open documents. |
static javax.swing.Action |
saveAsDocumentAction(XalDocument document)
Make an action that presents the user with an save file dialog. |
static javax.swing.Action |
saveDocumentAction(XalDocument document)
Make an action that presents the user with an save file dialog for a new document or just save the present document to its existing file source if it is not new. |
static javax.swing.Action |
showAboutBoxAction()
Make an action that shows the about box which presents information about the application. |
static javax.swing.Action |
showAllWindowsAction()
Make an action that shows all of the open documents. |
static javax.swing.Action |
showConsoleAction()
Make an action that shows the console window. |
protected static javax.swing.Action |
showDocumentAction(XalDocument document)
Make an internal action used by the documentsHandler to show a specified document when that document is selected from the documents submenu. |
static javax.swing.Action |
showHelpWindow()
Make an action that shows the help window. |
static javax.swing.Action |
showMemoryConsoleAction()
Make an action that shows the memory console window. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static javax.swing.Action newAction()
public static javax.swing.Action openDocumentAction()
protected static javax.swing.Action openURLAction(java.lang.String urlSpec)
urlSpec - The URL specification of the file to open
openRecentHandler()public static javax.swing.event.MenuListener openRecentHandler()
openURLAction(java.lang.String)public static javax.swing.Action closeDocumentAction(XalDocument document)
document - The document to close
public static javax.swing.Action closeAllDocumentsAction()
public static javax.swing.Action saveDocumentAction(XalDocument document)
document - The document to save.
Application.saveDocument(gov.sns.application.XalDocument)public static javax.swing.Action saveAsDocumentAction(XalDocument document)
document - The document to save.
Application.saveDocument(gov.sns.application.XalDocument)public static javax.swing.Action saveAllDocumentsAction()
saveDocumentAction(gov.sns.application.XalDocument)public static javax.swing.Action revertToSavedAction(XalDocument document)
document - The document to be reverted
public static javax.swing.Action printAction(XalDocument document)
public static javax.swing.Action pageSetupAction()
public static javax.swing.Action quitAction()
public static javax.swing.Action editPreferencesAction(XalDocument document)
public static javax.swing.Action showConsoleAction()
public static javax.swing.Action showMemoryConsoleAction()
public static javax.swing.event.MenuListener documentsHandler()
protected static javax.swing.Action showDocumentAction(XalDocument document)
document - The document to be shown
documentsHandler()protected static javax.swing.Action cascadeWindowsAction(XalDocument document)
document - The document about whose window all other windows will cascade
public static javax.swing.Action showAllWindowsAction()
public static javax.swing.Action hideAllWindowsAction()
public static javax.swing.Action captureWindowAsImageAction(XalDocument document)
document - The document whose main window should be captured
public static javax.swing.Action showAboutBoxAction()
public static javax.swing.Action showHelpWindow()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||