java.lang.Object
com.virtuosotechnologies.asaph.maingui.ListsImpl
- All Implemented Interfaces:
- ListUpdateManager, SelectionManager
- class ListsImpl
- extends java.lang.Object
- implements SelectionManager, ListUpdateManager
Implementation of the database and song lists.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STR_Dialog_DatabaseErrorTitle
private static final java.lang.String STR_Dialog_DatabaseErrorTitle
STR_Message_FetchIndexFailed
private static final java.lang.String STR_Message_FetchIndexFailed
STR_Dialog_ErrorHeader
private static final java.lang.String STR_Dialog_ErrorHeader
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_InfoPane_AltTitlesHeader
private static final java.lang.String STR_InfoPane_AltTitlesHeader
INFO_FONT
private static final java.awt.Font INFO_FONT
INFO_COLOR
private static final java.awt.Color INFO_COLOR
DETAILS_PREFSNODE
private static final java.lang.String DETAILS_PREFSNODE
- See Also:
- Constant Field Values
SHOW_COMMENT_PREF
private static final java.lang.String SHOW_COMMENT_PREF
- See Also:
- Constant Field Values
SHOW_AUTHOR_PREF
private static final java.lang.String SHOW_AUTHOR_PREF
- See Also:
- Constant Field Values
SHOW_COPYRIGHT_PREF
private static final java.lang.String SHOW_COPYRIGHT_PREF
- See Also:
- Constant Field Values
SHOW_ALTTITLES_PREF
private static final java.lang.String SHOW_ALTTITLES_PREF
- See Also:
- Constant Field Values
databaseManager_
private DatabaseManagerImpl databaseManager_
commandManager_
private CommandManagerImpl commandManager_
songUtils_
private com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils_
selectedDatabase_
private DatabaseManagerImpl.Item selectedDatabase_
selectedSongs_
private SongListModel.Item[] selectedSongs_
songListModels_
private java.util.Map songListModels_
songsHeader_
private ListsImpl.HeaderPane songsHeader_
databasesList_
private javax.swing.JList databasesList_
songsList_
private javax.swing.JList songsList_
infoPanel_
private javax.swing.JPanel infoPanel_
listsPanel_
private javax.swing.JSplitPane listsPanel_
upperSplit_
private javax.swing.JSplitPane upperSplit_
filterPredicate_
private com.virtuosotechnologies.asaph.model.opsemantics.PredicateSemantics filterPredicate_
detailPanePrefs_
private java.util.prefs.Preferences detailPanePrefs_
showCommentDetail_
private boolean showCommentDetail_
showAuthorDetail_
private boolean showAuthorDetail_
showCopyrightDetail_
private boolean showCopyrightDetail_
showAltTitlesDetail_
private boolean showAltTitlesDetail_
broadcaster_
private com.virtuosotechnologies.lib.util.EventBroadcastHelper broadcaster_
listener_
private DatabaseListener listener_
songsHeaderUpdater_
private SongListModel.SizeChangeListener songsHeaderUpdater_
ListsImpl
ListsImpl(com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils,
DatabaseManagerImpl databaseManager,
javax.swing.JComponent dialogParent)
- Constructor
updateInfoPane
private void updateInfoPane()
setupInfoPane
private void setupInfoPane(int numSongs)
setupInfoPane
private void setupInfoPane(com.virtuosotechnologies.asaph.model.SongID songID)
shutdown
void shutdown()
isShowingCommentDetail
boolean isShowingCommentDetail()
isShowingAuthorDetail
boolean isShowingAuthorDetail()
isShowingCopyrightDetail
boolean isShowingCopyrightDetail()
isShowingAltTitlesDetail
boolean isShowingAltTitlesDetail()
setShowingCommentDetail
void setShowingCommentDetail(boolean value)
setShowingAuthorDetail
void setShowingAuthorDetail(boolean value)
setShowingCopyrightDetail
void setShowingCopyrightDetail(boolean value)
setShowingAltTitlesDetail
void setShowingAltTitlesDetail(boolean value)
setTopSplitPanePosition
void setTopSplitPanePosition(int pos)
getTopSplitPanePosition
int getTopSplitPanePosition()
setBottomSplitPanePosition
void setBottomSplitPanePosition(int pos)
getBottomSplitPanePosition
int getBottomSplitPanePosition()
getJComponent
javax.swing.JComponent getJComponent()
getSelectedDatabaseHandler
DatabaseHandler getSelectedDatabaseHandler()
getNameForSongID
java.lang.String getNameForSongID(com.virtuosotechnologies.asaph.model.SongID id)
refreshDatabaseIndex
void refreshDatabaseIndex(com.virtuosotechnologies.asaph.model.SongDatabase database)
throws com.virtuosotechnologies.asaph.model.SongDatabaseFailedException
setCommandManager
void setCommandManager(CommandManagerImpl commandManager)
setFilter
void setFilter(com.virtuosotechnologies.asaph.model.opsemantics.PredicateSemantics filter)
getFilter
com.virtuosotechnologies.asaph.model.opsemantics.PredicateSemantics getFilter()
requestFocus
void requestFocus()
getSelectedDatabase
public com.virtuosotechnologies.asaph.model.SongDatabase getSelectedDatabase()
- Get the currently selected database.
- Specified by:
getSelectedDatabase in interface SelectionManager
getSelectedSongSet
public java.util.Set getSelectedSongSet()
- Get the Set of currently selected songs.
- Specified by:
getSelectedSongSet in interface SelectionManager
selectDatabase
public void selectDatabase(com.virtuosotechnologies.asaph.model.SongDatabase database)
- Select the specified database in the gui.
- Specified by:
selectDatabase in interface SelectionManager
addSelectionListener
public void addSelectionListener(SelectionListener listener)
- Add a SelectionListener to the main gui.
Note that it is added as a weak listener, so make sure it is strongly
referenced elsewhere.
- Specified by:
addSelectionListener in interface SelectionManager
removeSelectionListener
public void removeSelectionListener(SelectionListener listener)
- Remove a SelectionListener from the main gui. Does nothing if the
listener is not added.
- Specified by:
removeSelectionListener in interface SelectionManager
reportSongAdded
public void reportSongAdded(com.virtuosotechnologies.asaph.model.SongID songID)
- Notify the main gui that a song has been added by this plugin. This
causes the main gui to update its song list appropriately.
It isn't strictly necessary to use this callback, but failure to
do so may cause the main gui to get out of sync with the database
contents until the user explicitly refreshes the index.
- Specified by:
reportSongAdded in interface ListUpdateManager
reportSongRemoved
public void reportSongRemoved(com.virtuosotechnologies.asaph.model.SongID songID)
- Notify the main gui that a song has been removed by this plugin. This
causes the main gui to update its song list appropriately.
It isn't strictly necessary to use this callback, but failure to
do so may cause the main gui to get out of sync with the database
contents until the user explicitly refreshes the index.
- Specified by:
reportSongRemoved in interface ListUpdateManager
reportSongChanged
public void reportSongChanged(com.virtuosotechnologies.asaph.model.SongID songID)
- Notify the main gui that a song has been changed by this plugin. This
causes the main gui to update its song list appropriately.
It isn't strictly necessary to use this callback, but failure to
do so may cause the main gui to get out of sync with the database
contents until the user explicitly refreshes the index.
- Specified by:
reportSongChanged in interface ListUpdateManager