java.lang.Object
com.virtuosotechnologies.asaph.standardgui.SongWindow
- class SongWindow
- extends java.lang.Object
A window in the standard gui, for viewing and editing a single song
|
Constructor Summary |
(package private) |
SongWindow(StandardGuiPlugin plugin,
com.virtuosotechnologies.asaph.model.SongID songID,
EditorPrefs editorPrefs,
com.virtuosotechnologies.asaph.maingui.DatabaseManager databaseManager,
com.virtuosotechnologies.asaph.maingui.GuiEnvironmentManager guiEnvironmentManager,
com.virtuosotechnologies.asaph.maingui.ListUpdateManager listUpdateManager,
com.virtuosotechnologies.asaph.maingui.PaneManager paneManager,
com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils,
com.virtuosotechnologies.asaph.modelutils.DataTransferUtils dataTransferUtils,
com.virtuosotechnologies.asaph.notationmanager.NotationManager notationManager,
com.virtuosotechnologies.lib.asyncjob.AsyncJobRunner jobRunner)
Constructor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STR_menu_SongTitle
private static final java.lang.String STR_menu_SongTitle
STR_menu_Song_SaveItem
private static final java.lang.String STR_menu_Song_SaveItem
STR_menu_Song_CloseItem
private static final java.lang.String STR_menu_Song_CloseItem
STR_menu_Song_ToggleViewerItem
private static final java.lang.String STR_menu_Song_ToggleViewerItem
STR_menu_Song_ToggleEditorItem
private static final java.lang.String STR_menu_Song_ToggleEditorItem
STR_menu_Song_SaveKeyStroke
private static final java.lang.String STR_menu_Song_SaveKeyStroke
STR_menu_Song_CloseKeyStroke
private static final java.lang.String STR_menu_Song_CloseKeyStroke
STR_SongWindow_UntitledSongTitle
private static final java.lang.String STR_SongWindow_UntitledSongTitle
STR_dialog_ErrorTitle
private static final java.lang.String STR_dialog_ErrorTitle
STR_dialog_ConfirmTitle
private static final java.lang.String STR_dialog_ConfirmTitle
STR_dialog_ErrorsHeader
private static final java.lang.String STR_dialog_ErrorsHeader
STR_dialog_FirstExceptionTemplate
private static final java.lang.String STR_dialog_FirstExceptionTemplate
STR_dialog_NextExceptionTemplate
private static final java.lang.String STR_dialog_NextExceptionTemplate
STR_message_SongVanishedOnSave
private static final java.lang.String STR_message_SongVanishedOnSave
STR_message_SongNotFreshOnSave
private static final java.lang.String STR_message_SongNotFreshOnSave
STR_message_SongRemovedOnSave
private static final java.lang.String STR_message_SongRemovedOnSave
STR_message_SaveSongError
private static final java.lang.String STR_message_SaveSongError
logger_
private java.util.logging.Logger logger_
plugin_
private StandardGuiPlugin plugin_
songUtils_
private com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils_
dataTransferUtils_
private com.virtuosotechnologies.asaph.modelutils.DataTransferUtils dataTransferUtils_
notationManager_
private com.virtuosotechnologies.asaph.notationmanager.NotationManager notationManager_
databaseManager_
private com.virtuosotechnologies.asaph.maingui.DatabaseManager databaseManager_
guiEnvironmentManager_
private com.virtuosotechnologies.asaph.maingui.GuiEnvironmentManager guiEnvironmentManager_
listUpdateManager_
private com.virtuosotechnologies.asaph.maingui.ListUpdateManager listUpdateManager_
jobRunner_
private com.virtuosotechnologies.lib.asyncjob.AsyncJobRunner jobRunner_
songID_
private com.virtuosotechnologies.asaph.model.SongID songID_
song_
private com.virtuosotechnologies.asaph.model.Song song_
songTitle_
private java.lang.String songTitle_
dirty_
private boolean dirty_
renderSettings_
private RenderSettings renderSettings_
paneController_
private com.virtuosotechnologies.asaph.maingui.PaneController paneController_
mainPanel_
private javax.swing.JPanel mainPanel_
commandGroup_
private com.virtuosotechnologies.lib.basiccommand.BasicCommandNode commandGroup_
saveCommand_
private com.virtuosotechnologies.lib.basiccommand.BasicCommandNode saveCommand_
viewerMode_
private com.virtuosotechnologies.lib.basiccommand.BasicCommandNode viewerMode_
editorMode_
private com.virtuosotechnologies.lib.basiccommand.BasicCommandNode editorMode_
viewer_
private SongViewer viewer_
editor_
private SongEditor editor_
editorPrefs_
private EditorPrefs editorPrefs_
prefsListener_
private EditorPrefs.PrefsListener prefsListener_
SongWindow
SongWindow(StandardGuiPlugin plugin,
com.virtuosotechnologies.asaph.model.SongID songID,
EditorPrefs editorPrefs,
com.virtuosotechnologies.asaph.maingui.DatabaseManager databaseManager,
com.virtuosotechnologies.asaph.maingui.GuiEnvironmentManager guiEnvironmentManager,
com.virtuosotechnologies.asaph.maingui.ListUpdateManager listUpdateManager,
com.virtuosotechnologies.asaph.maingui.PaneManager paneManager,
com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils,
com.virtuosotechnologies.asaph.modelutils.DataTransferUtils dataTransferUtils,
com.virtuosotechnologies.asaph.notationmanager.NotationManager notationManager,
com.virtuosotechnologies.lib.asyncjob.AsyncJobRunner jobRunner)
throws com.virtuosotechnologies.asaph.model.SongDatabaseFailedException,
com.virtuosotechnologies.asaph.model.SongDeletedException
- Constructor
switchToViewer
private void switchToViewer()
switchToEditor
private void switchToEditor()
getSongUtils
com.virtuosotechnologies.asaph.modelutils.SongUtils getSongUtils()
getDataTransferUtils
com.virtuosotechnologies.asaph.modelutils.DataTransferUtils getDataTransferUtils()
getNotationManager
com.virtuosotechnologies.asaph.notationmanager.NotationManager getNotationManager()
databaseClosing
boolean databaseClosing(com.virtuosotechnologies.asaph.model.SongDatabase database)
- Handle database closing event
handleClosing
private boolean handleClosing()
- Handle close request
handleSave
private boolean handleSave()
- Handle save request
markDirty
void markDirty()
- Mark the song as dirty
getPrinterJob
java.awt.print.PrinterJob getPrinterJob()
- Get PrinterJob
getPrintAttributes
javax.print.attribute.PrintRequestAttributeSet getPrintAttributes()
- Get PrintRequestAttributeSet