Package com.tagtraum.beatunes.library
Interface MediaLibraryUIDelegate
-
- All Known Implementing Classes:
MediaLibraryDelegateImpl
public interface MediaLibraryUIDelegateMediaLibraryUIDelegate.- Author:
- Hendrik Schreiber
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JDialogcreateDatabaseRecoveryDialog()Database recovery dialog.JDialogcreateDatabaseUpdateDialog()Database update dialog.JDialogcreateRebuildSearchIndexDialog()Full text index rebuild dialog.JDialogcreateSynchronizationProgressDialog()StringgetApplicationVersion()Version String used for the settings table.org.hibernate.boot.MetadataSourcesmetadataSources(org.hibernate.boot.MetadataSources metadataSources)Gives the delegate the chance to modify or replace the given configuration.voidshowDatabaseIsCorruptDialog()Database is corrupt-dialog.voidshowDatabaseMigrationErrorMessage(Exception e)Display error message about a failed database migration.booleanshowDatabaseRecoveryErrorMessage(Exception e)Display error message about a failed database recovery.voidshowOutOfMemoryMessage()Shows appropriate out of memory error message.booleanshowRetryCommunicationDialog()Makes the user aware of the fact that communication with iTunes failed and ask, whether it should be tried again.voidshowSchemaEvolutionErrorMessage(Exception e)Display error message about a failed schema evolution.voidshowSchemasDontMatchMessage(String expected, String actual)Display error message about mismatching schemas.voidshowSeriousErrorMessage(Throwable t)Shows appropriate serious error message.
-
-
-
Method Detail
-
showOutOfMemoryMessage
void showOutOfMemoryMessage()
Shows appropriate out of memory error message.
-
showSeriousErrorMessage
void showSeriousErrorMessage(Throwable t)
Shows appropriate serious error message.- Parameters:
t- throwable
-
showRetryCommunicationDialog
boolean showRetryCommunicationDialog()
Makes the user aware of the fact that communication with iTunes failed and ask, whether it should be tried again.- Returns:
- true, if communication should be retried.
-
createSynchronizationProgressDialog
JDialog createSynchronizationProgressDialog()
- Returns:
- a dialog that should implement the
ProgressListenerinterface, if it wants to be notified of whatever progress is being made
-
metadataSources
org.hibernate.boot.MetadataSources metadataSources(org.hibernate.boot.MetadataSources metadataSources)
Gives the delegate the chance to modify or replace the given configuration.- Parameters:
metadataSources- hibernate configuration.- Returns:
- modified or replaced configuration
-
createDatabaseUpdateDialog
JDialog createDatabaseUpdateDialog()
Database update dialog.- Returns:
- a dialog that can be shown, while we are updating the database.
-
createRebuildSearchIndexDialog
JDialog createRebuildSearchIndexDialog()
Full text index rebuild dialog.- Returns:
- a dialog that can be shown, while we are rebuilding the full text index
-
createDatabaseRecoveryDialog
JDialog createDatabaseRecoveryDialog()
Database recovery dialog.- Returns:
- a dialog that can be shown, while we are recovering the database.
-
showDatabaseIsCorruptDialog
void showDatabaseIsCorruptDialog()
Database is corrupt-dialog. To be displayed, when we
-
showSchemaEvolutionErrorMessage
void showSchemaEvolutionErrorMessage(Exception e)
Display error message about a failed schema evolution.- Parameters:
e- exception
-
showDatabaseMigrationErrorMessage
void showDatabaseMigrationErrorMessage(Exception e)
Display error message about a failed database migration.- Parameters:
e- exception
-
showDatabaseRecoveryErrorMessage
boolean showDatabaseRecoveryErrorMessage(Exception e)
Display error message about a failed database recovery.- Parameters:
e- exception- Returns:
- true, if the user wants us to delete the database
-
showSchemasDontMatchMessage
void showSchemasDontMatchMessage(String expected, String actual)
Display error message about mismatching schemas.- Parameters:
expected- expected schema versionactual- schema version
-
getApplicationVersion
String getApplicationVersion()
Version String used for the settings table.- Returns:
- a version string for this version of the application
-
-