Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.virtuosotechnologies.asaph.standardgui
Class SongWindow  view SongWindow download SongWindow.java

java.lang.Object
  extended bycom.virtuosotechnologies.asaph.standardgui.SongWindow

class SongWindow
extends java.lang.Object

A window in the standard gui, for viewing and editing a single song


Nested Class Summary
private  class SongWindow.ToggleEditorCommandNode
           
private  class SongWindow.ToggleViewerCommandNode
           
 
Field Summary
private  com.virtuosotechnologies.lib.basiccommand.BasicCommandNode commandGroup_
           
private  com.virtuosotechnologies.asaph.maingui.DatabaseManager databaseManager_
           
private  com.virtuosotechnologies.asaph.modelutils.DataTransferUtils dataTransferUtils_
           
private  boolean dirty_
           
private  SongEditor editor_
           
private  com.virtuosotechnologies.lib.basiccommand.BasicCommandNode editorMode_
           
private  EditorPrefs editorPrefs_
           
private  com.virtuosotechnologies.asaph.maingui.GuiEnvironmentManager guiEnvironmentManager_
           
private  com.virtuosotechnologies.lib.asyncjob.AsyncJobRunner jobRunner_
           
private  com.virtuosotechnologies.asaph.maingui.ListUpdateManager listUpdateManager_
           
private  java.util.logging.Logger logger_
           
private  javax.swing.JPanel mainPanel_
           
private  com.virtuosotechnologies.asaph.notationmanager.NotationManager notationManager_
           
private  com.virtuosotechnologies.asaph.maingui.PaneController paneController_
           
private  StandardGuiPlugin plugin_
           
private  EditorPrefs.PrefsListener prefsListener_
           
private  RenderSettings renderSettings_
           
private  com.virtuosotechnologies.lib.basiccommand.BasicCommandNode saveCommand_
           
private  com.virtuosotechnologies.asaph.model.Song song_
           
private  com.virtuosotechnologies.asaph.model.SongID songID_
           
private  java.lang.String songTitle_
           
private  com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils_
           
private static java.lang.String STR_dialog_ConfirmTitle
           
private static java.lang.String STR_dialog_ErrorsHeader
           
private static java.lang.String STR_dialog_ErrorTitle
           
private static java.lang.String STR_dialog_FirstExceptionTemplate
           
private static java.lang.String STR_dialog_NextExceptionTemplate
           
private static java.lang.String STR_menu_Song_CloseItem
           
private static java.lang.String STR_menu_Song_CloseKeyStroke
           
private static java.lang.String STR_menu_Song_SaveItem
           
private static java.lang.String STR_menu_Song_SaveKeyStroke
           
private static java.lang.String STR_menu_Song_ToggleEditorItem
           
private static java.lang.String STR_menu_Song_ToggleViewerItem
           
private static java.lang.String STR_menu_SongTitle
           
private static java.lang.String STR_message_SaveSongError
           
private static java.lang.String STR_message_SongNotFreshOnSave
           
private static java.lang.String STR_message_SongRemovedOnSave
           
private static java.lang.String STR_message_SongVanishedOnSave
           
private static java.lang.String STR_SongWindow_UntitledSongTitle
           
private  SongViewer viewer_
           
private  com.virtuosotechnologies.lib.basiccommand.BasicCommandNode viewerMode_
           
 
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
 
Method Summary
(package private)  boolean databaseClosing(com.virtuosotechnologies.asaph.model.SongDatabase database)
          Handle database closing event
(package private)  com.virtuosotechnologies.asaph.modelutils.DataTransferUtils getDataTransferUtils()
           
(package private)  com.virtuosotechnologies.asaph.notationmanager.NotationManager getNotationManager()
           
(package private)  javax.print.attribute.PrintRequestAttributeSet getPrintAttributes()
          Get PrintRequestAttributeSet
(package private)  java.awt.print.PrinterJob getPrinterJob()
          Get PrinterJob
(package private)  com.virtuosotechnologies.asaph.modelutils.SongUtils getSongUtils()
           
private  boolean handleClosing()
          Handle close request
private  boolean handleSave()
          Handle save request
(package private)  void markDirty()
          Mark the song as dirty
private  void switchToEditor()
           
private  void switchToViewer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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_
Constructor Detail

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

Method Detail

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