public class ActionFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static javax.swing.Action |
captureWindowAsImageAction(xal.extension.application.XalAbstractDocument 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(xal.extension.application.XalAbstractDocument document)
Cascade all document windows relative to the location of the window
where the action was fired.
|
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.
|
protected static javax.swing.Action |
showDocumentAction(xal.extension.application.XalAbstractDocument document)
Make an internal action used by the documentsHandler to show a specified document
when that document is selected from the documents submenu.
|
protected static javax.swing.Action openURLAction(java.lang.String urlSpec)
urlSpec
- The URL specification of the file to openopenRecentHandler()
protected static javax.swing.Action showDocumentAction(xal.extension.application.XalAbstractDocument document)
document
- The document to be showndocumentsHandler()
protected static javax.swing.Action cascadeWindowsAction(xal.extension.application.XalAbstractDocument document)
document
- The document about whose window all other windows will cascadepublic static javax.swing.Action captureWindowAsImageAction(xal.extension.application.XalAbstractDocument document)
document
- The document whose main window should be captured