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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.virtuosotechnologies.asaph.standardgui.StandardGuiPlugin
All Implemented Interfaces:
com.virtuosotechnologies.lib.plugin.PluginInitializer

public class StandardGuiPlugin
extends java.lang.Object
implements com.virtuosotechnologies.lib.plugin.PluginInitializer

Plugin for the standard song viewer and editor


Field Summary
private  com.virtuosotechnologies.asaph.maingui.CommandManager commandManager_
           
private  com.virtuosotechnologies.asaph.model.SongID curSong_
           
private  com.virtuosotechnologies.asaph.maingui.DatabaseListener databaseListener_
           
private  com.virtuosotechnologies.asaph.maingui.DatabaseManager databaseManager_
           
private  com.virtuosotechnologies.asaph.modelutils.DataTransferUtils dataTransferUtils_
           
private static int DEFAULT_SONG_COMMAND_PRIORITY
           
private  EditorPrefs editorPrefs_
           
private  com.virtuosotechnologies.asaph.maingui.GuiEnvironmentManager guiEnvironmentManager_
           
private  com.virtuosotechnologies.lib.asyncjob.AsyncJobListener jobListener_
           
private  com.virtuosotechnologies.lib.asyncjob.AsyncJobRunner jobRunner_
           
private  com.virtuosotechnologies.asaph.maingui.ListUpdateManager listUpdateManager_
           
private  java.util.logging.Logger logger_
           
private  com.virtuosotechnologies.asaph.notationmanager.NotationManager notationManager_
           
private  com.virtuosotechnologies.lib.basiccommand.BasicCommandNode openCommand_
           
private  com.virtuosotechnologies.asaph.maingui.PaneManager paneManager_
           
private  javax.print.attribute.PrintRequestAttributeSet printAttributes_
           
private  java.awt.print.PrinterJob printJob_
           
private  com.virtuosotechnologies.asaph.maingui.SelectionListener selectionListener_
           
private  com.virtuosotechnologies.asaph.maingui.SelectionManager selectionManager_
           
private  com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils_
           
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_message_InternalError
           
private static java.lang.String STR_message_LoadSongError
           
private static java.lang.String STR_message_PrinterError
           
private static java.lang.String STR_message_SongRemovedOnOpen
           
private static java.lang.String STR_StandardGuiPlugin_OpenSongJobName
           
private  java.util.Set windows_
           
 
Constructor Summary
StandardGuiPlugin()
           
 
Method Summary
private  void doOpenSong()
           
 java.lang.Object getAPIImplementation(java.lang.String apiName, com.virtuosotechnologies.lib.plugin.PluginLinker linker)
          A plugin must implement this method to provide the implementations of the APIs that it provides.
(package private)  javax.print.attribute.PrintRequestAttributeSet getPrintAttributes()
          Get PrintRequestAttributeSet
(package private)  java.awt.print.PrinterJob getPrinterJob()
          Get PrinterJob
private  void handleDatabaseClosing(com.virtuosotechnologies.asaph.maingui.DatabaseEvent ev)
          Database closing
private  void handleSongSelected(com.virtuosotechnologies.asaph.maingui.SongSelectionEvent ev)
          Song selection changed
 void initialize(com.virtuosotechnologies.lib.plugin.PluginLinker linker)
          Perform first initialization of the plugin.
(package private)  void registerWindow(SongWindow window)
          Register a pane
(package private)  void unregisterWindow(SongWindow window)
          Unregister a pane
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_dialog_ErrorTitle

private static final java.lang.String STR_dialog_ErrorTitle

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_SongRemovedOnOpen

private static final java.lang.String STR_message_SongRemovedOnOpen

STR_message_LoadSongError

private static final java.lang.String STR_message_LoadSongError

STR_message_PrinterError

private static final java.lang.String STR_message_PrinterError

STR_message_InternalError

private static final java.lang.String STR_message_InternalError

STR_StandardGuiPlugin_OpenSongJobName

private static final java.lang.String STR_StandardGuiPlugin_OpenSongJobName

DEFAULT_SONG_COMMAND_PRIORITY

private static final int DEFAULT_SONG_COMMAND_PRIORITY
See Also:
Constant Field Values

logger_

private java.util.logging.Logger logger_

commandManager_

private com.virtuosotechnologies.asaph.maingui.CommandManager commandManager_

databaseManager_

private com.virtuosotechnologies.asaph.maingui.DatabaseManager databaseManager_

guiEnvironmentManager_

private com.virtuosotechnologies.asaph.maingui.GuiEnvironmentManager guiEnvironmentManager_

listUpdateManager_

private com.virtuosotechnologies.asaph.maingui.ListUpdateManager listUpdateManager_

paneManager_

private com.virtuosotechnologies.asaph.maingui.PaneManager paneManager_

selectionManager_

private com.virtuosotechnologies.asaph.maingui.SelectionManager selectionManager_

songUtils_

private com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils_

dataTransferUtils_

private com.virtuosotechnologies.asaph.modelutils.DataTransferUtils dataTransferUtils_

notationManager_

private com.virtuosotechnologies.asaph.notationmanager.NotationManager notationManager_

editorPrefs_

private EditorPrefs editorPrefs_

jobRunner_

private com.virtuosotechnologies.lib.asyncjob.AsyncJobRunner jobRunner_

jobListener_

private com.virtuosotechnologies.lib.asyncjob.AsyncJobListener jobListener_

openCommand_

private com.virtuosotechnologies.lib.basiccommand.BasicCommandNode openCommand_

curSong_

private com.virtuosotechnologies.asaph.model.SongID curSong_

windows_

private java.util.Set windows_

printJob_

private java.awt.print.PrinterJob printJob_

printAttributes_

private javax.print.attribute.PrintRequestAttributeSet printAttributes_

selectionListener_

private com.virtuosotechnologies.asaph.maingui.SelectionListener selectionListener_

databaseListener_

private com.virtuosotechnologies.asaph.maingui.DatabaseListener databaseListener_
Constructor Detail

StandardGuiPlugin

public StandardGuiPlugin()
Method Detail

initialize

public void initialize(com.virtuosotechnologies.lib.plugin.PluginLinker linker)
                throws com.virtuosotechnologies.lib.plugin.PluginInitializerException
Perform first initialization of the plugin. This is called after the plugin is instantiated, but before it is asked to provide any of its API implementations. Any APIs the plugin declared it needed for initialization will be available through the linker when this method is called.

Plugins should perform any time-consuming initialization in this method, rather than in the constructor or static initializers, and should use this method to report any fatal errors during initialization.

Specified by:
initialize in interface com.virtuosotechnologies.lib.plugin.PluginInitializer

getAPIImplementation

public java.lang.Object getAPIImplementation(java.lang.String apiName,
                                             com.virtuosotechnologies.lib.plugin.PluginLinker linker)
                                      throws com.virtuosotechnologies.lib.plugin.PluginInitializerException
A plugin must implement this method to provide the implementations of the APIs that it provides. This method is called after the initialize() method. Any APIs the plugin declared it needed in to implement this API will be available through the linker when this method is called.

Plugins should perform any time-consuming initialization in this method, rather than in the constructor or static initializers, and should use this method to report any fatal errors during initialization.

Specified by:
getAPIImplementation in interface com.virtuosotechnologies.lib.plugin.PluginInitializer

getPrinterJob

java.awt.print.PrinterJob getPrinterJob()
Get PrinterJob


getPrintAttributes

javax.print.attribute.PrintRequestAttributeSet getPrintAttributes()
Get PrintRequestAttributeSet


registerWindow

void registerWindow(SongWindow window)
Register a pane


unregisterWindow

void unregisterWindow(SongWindow window)
Unregister a pane


handleDatabaseClosing

private void handleDatabaseClosing(com.virtuosotechnologies.asaph.maingui.DatabaseEvent ev)
                            throws com.virtuosotechnologies.lib.util.EventAbortedException
Database closing


handleSongSelected

private void handleSongSelected(com.virtuosotechnologies.asaph.maingui.SongSelectionEvent ev)
Song selection changed


doOpenSong

private void doOpenSong()