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

Quick Search    Search Deep

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

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

class SongEditor
extends java.lang.Object

Song editor pane implementation


Field Summary
private  SongBodyEditorPane bodyEditor_
           
private  com.virtuosotechnologies.lib.basiccommand.BasicCommandNode bodyEditorEditGroup_
           
private  com.virtuosotechnologies.lib.basiccommand.BasicCommandNode bodyEditorMenuGroup_
           
private  com.virtuosotechnologies.lib.basiccommand.BasicCommandNode commandGroup_
           
private  com.virtuosotechnologies.lib.basiccommand.BasicCommandNode copyCommand_
           
private  com.virtuosotechnologies.lib.basiccommand.BasicCommandNode cutCommand_
           
private  com.virtuosotechnologies.lib.basiccommand.BasicCommandNode deleteCommand_
           
private  EditorPrefs editorPrefs_
           
private  com.virtuosotechnologies.lib.basiccommand.BasicCommandNode formClipboardGroup_
           
private  com.virtuosotechnologies.lib.asyncjob.AsyncJobRunner jobRunner_
           
private  java.util.logging.Logger logger_
           
private  com.virtuosotechnologies.lib.basiccommand.BasicCommandNode pasteCommand_
           
private  com.virtuosotechnologies.lib.basiccommand.BasicCommandNode redoCommand_
           
private  boolean showingBodyEditor_
           
private  com.virtuosotechnologies.asaph.model.Song song_
           
private  com.virtuosotechnologies.asaph.model.SongID songID_
           
private  com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils_
           
private static java.lang.String STR_menu_Edit_CopyItem
           
private static java.lang.String STR_menu_Edit_CopyKeyStroke
           
private static java.lang.String STR_menu_Edit_CutItem
           
private static java.lang.String STR_menu_Edit_CutKeyStroke
           
private static java.lang.String STR_menu_Edit_DeleteItem
           
private static java.lang.String STR_menu_Edit_PasteItem
           
private static java.lang.String STR_menu_Edit_PasteKeyStroke
           
private static java.lang.String STR_menu_Edit_RedoItem
           
private static java.lang.String STR_menu_Edit_RedoKeyStroke
           
private static java.lang.String STR_menu_Edit_UndoItem
           
private static java.lang.String STR_menu_Edit_UndoKeyStroke
           
private static java.lang.String STR_menu_EditTitle
           
private static java.lang.String STR_SongEditor_AltTitlesLabel
           
private static java.lang.String STR_SongEditor_BodyTab
           
private static java.lang.String STR_SongEditor_FieldsTab
           
private static java.lang.String STR_SongEditor_KeywordsLabel
           
private static java.lang.String STR_SongEditor_NotesTab
           
private static java.lang.String STR_SongEditor_VersionsTab
           
private  javax.swing.JTabbedPane tabbedPane_
           
private  com.virtuosotechnologies.lib.basiccommand.BasicCommandNode undoCommand_
           
private  javax.swing.undo.UndoManager undoManager_
           
private  SongWindow window_
           
 
Constructor Summary
(package private) SongEditor(SongWindow window, com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils, EditorPrefs editorPrefs, com.virtuosotechnologies.asaph.maingui.GuiEnvironmentManager guiEnvironmentManager, com.virtuosotechnologies.lib.asyncjob.AsyncJobRunner jobRunner, com.virtuosotechnologies.asaph.model.SongID songID, com.virtuosotechnologies.asaph.model.Song song)
          Constructor
 
Method Summary
private  void addTabSwitchingEdit(javax.swing.undo.UndoableEdit delegate, javax.swing.JComponent component)
           
private  void addTabSwitchingEdit(javax.swing.undo.UndoableEdit delegate, javax.swing.JComponent component, SongBodyEditorPane bodyEditorPane)
           
private  void buildFieldsTab()
           
private  void buildMenus()
           
private  void buildNotesTab()
           
private  void buildSongTab(com.virtuosotechnologies.asaph.maingui.GuiEnvironmentManager guiEnvironmentManager)
           
private  void buildVersionsTab()
           
(package private)  void commitCurrentField()
           
(package private)  void dispose()
          Dispose the editor
(package private)  com.virtuosotechnologies.lib.command.CommandNode getCommandNode()
          Get the toplevel command node
(package private)  javax.swing.JComponent getJComponent()
          Get the component
(package private)  void markDirty()
           
private  void performCommonOperations()
           
(package private)  void setUndoLevels(int levels)
           
(package private)  void updateFieldClipboardMenus(int level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_menu_EditTitle

private static final java.lang.String STR_menu_EditTitle

STR_menu_Edit_UndoItem

private static final java.lang.String STR_menu_Edit_UndoItem

STR_menu_Edit_RedoItem

private static final java.lang.String STR_menu_Edit_RedoItem

STR_menu_Edit_CutItem

private static final java.lang.String STR_menu_Edit_CutItem

STR_menu_Edit_CopyItem

private static final java.lang.String STR_menu_Edit_CopyItem

STR_menu_Edit_PasteItem

private static final java.lang.String STR_menu_Edit_PasteItem

STR_menu_Edit_DeleteItem

private static final java.lang.String STR_menu_Edit_DeleteItem

STR_menu_Edit_UndoKeyStroke

private static final java.lang.String STR_menu_Edit_UndoKeyStroke

STR_menu_Edit_RedoKeyStroke

private static final java.lang.String STR_menu_Edit_RedoKeyStroke

STR_menu_Edit_CutKeyStroke

private static final java.lang.String STR_menu_Edit_CutKeyStroke

STR_menu_Edit_CopyKeyStroke

private static final java.lang.String STR_menu_Edit_CopyKeyStroke

STR_menu_Edit_PasteKeyStroke

private static final java.lang.String STR_menu_Edit_PasteKeyStroke

STR_SongEditor_FieldsTab

private static final java.lang.String STR_SongEditor_FieldsTab

STR_SongEditor_AltTitlesLabel

private static final java.lang.String STR_SongEditor_AltTitlesLabel

STR_SongEditor_KeywordsLabel

private static final java.lang.String STR_SongEditor_KeywordsLabel

STR_SongEditor_VersionsTab

private static final java.lang.String STR_SongEditor_VersionsTab

STR_SongEditor_BodyTab

private static final java.lang.String STR_SongEditor_BodyTab

STR_SongEditor_NotesTab

private static final java.lang.String STR_SongEditor_NotesTab

logger_

private java.util.logging.Logger logger_

editorPrefs_

private EditorPrefs editorPrefs_

songUtils_

private com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils_

window_

private SongWindow window_

jobRunner_

private com.virtuosotechnologies.lib.asyncjob.AsyncJobRunner jobRunner_

songID_

private com.virtuosotechnologies.asaph.model.SongID songID_

song_

private com.virtuosotechnologies.asaph.model.Song song_

commandGroup_

private com.virtuosotechnologies.lib.basiccommand.BasicCommandNode commandGroup_

undoCommand_

private com.virtuosotechnologies.lib.basiccommand.BasicCommandNode undoCommand_

redoCommand_

private com.virtuosotechnologies.lib.basiccommand.BasicCommandNode redoCommand_

cutCommand_

private com.virtuosotechnologies.lib.basiccommand.BasicCommandNode cutCommand_

copyCommand_

private com.virtuosotechnologies.lib.basiccommand.BasicCommandNode copyCommand_

pasteCommand_

private com.virtuosotechnologies.lib.basiccommand.BasicCommandNode pasteCommand_

deleteCommand_

private com.virtuosotechnologies.lib.basiccommand.BasicCommandNode deleteCommand_

formClipboardGroup_

private com.virtuosotechnologies.lib.basiccommand.BasicCommandNode formClipboardGroup_

bodyEditorEditGroup_

private com.virtuosotechnologies.lib.basiccommand.BasicCommandNode bodyEditorEditGroup_

bodyEditorMenuGroup_

private com.virtuosotechnologies.lib.basiccommand.BasicCommandNode bodyEditorMenuGroup_

tabbedPane_

private javax.swing.JTabbedPane tabbedPane_

showingBodyEditor_

private boolean showingBodyEditor_

undoManager_

private javax.swing.undo.UndoManager undoManager_

bodyEditor_

private SongBodyEditorPane bodyEditor_
Constructor Detail

SongEditor

SongEditor(SongWindow window,
           com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils,
           EditorPrefs editorPrefs,
           com.virtuosotechnologies.asaph.maingui.GuiEnvironmentManager guiEnvironmentManager,
           com.virtuosotechnologies.lib.asyncjob.AsyncJobRunner jobRunner,
           com.virtuosotechnologies.asaph.model.SongID songID,
           com.virtuosotechnologies.asaph.model.Song song)
Constructor

Method Detail

dispose

void dispose()
Dispose the editor


setUndoLevels

void setUndoLevels(int levels)

getJComponent

javax.swing.JComponent getJComponent()
Get the component


getCommandNode

com.virtuosotechnologies.lib.command.CommandNode getCommandNode()
Get the toplevel command node


markDirty

void markDirty()

commitCurrentField

void commitCurrentField()

updateFieldClipboardMenus

void updateFieldClipboardMenus(int level)

buildMenus

private void buildMenus()

performCommonOperations

private void performCommonOperations()

addTabSwitchingEdit

private void addTabSwitchingEdit(javax.swing.undo.UndoableEdit delegate,
                                 javax.swing.JComponent component)

addTabSwitchingEdit

private void addTabSwitchingEdit(javax.swing.undo.UndoableEdit delegate,
                                 javax.swing.JComponent component,
                                 SongBodyEditorPane bodyEditorPane)

buildFieldsTab

private void buildFieldsTab()

buildVersionsTab

private void buildVersionsTab()

buildSongTab

private void buildSongTab(com.virtuosotechnologies.asaph.maingui.GuiEnvironmentManager guiEnvironmentManager)

buildNotesTab

private void buildNotesTab()