java.lang.Object
com.virtuosotechnologies.asaph.xmldatabase.XMLDatabaseGui.DatabaseInfo
- All Implemented Interfaces:
- com.virtuosotechnologies.asaph.maingui.DatabaseHandler, com.virtuosotechnologies.asaph.maingui.PaneHandler
- Enclosing class:
- XMLDatabaseGui
- class XMLDatabaseGui.DatabaseInfo
- extends java.lang.Object
- implements com.virtuosotechnologies.asaph.maingui.DatabaseHandler, com.virtuosotechnologies.asaph.maingui.PaneHandler
Database handler class.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
database_
private com.virtuosotechnologies.asaph.model.SongDatabase database_
isDirty_
private boolean isDirty_
name_
private java.lang.String name_
defaultName_
private java.lang.String defaultName_
filePath_
private java.io.File filePath_
url_
private java.net.URL url_
monolithic_
private boolean monolithic_
databaseController_
private com.virtuosotechnologies.asaph.maingui.DatabaseController databaseController_
paneController_
private com.virtuosotechnologies.asaph.maingui.PaneController paneController_
fileField_
private javax.swing.JTextArea fileField_
uriField_
private javax.swing.JTextArea uriField_
savedLabel_
private javax.swing.JLabel savedLabel_
XMLDatabaseGui.DatabaseInfo
XMLDatabaseGui.DatabaseInfo(com.virtuosotechnologies.asaph.model.SongDatabase database,
java.io.File f)
XMLDatabaseGui.DatabaseInfo
XMLDatabaseGui.DatabaseInfo(com.virtuosotechnologies.asaph.model.SongDatabase database,
java.net.URL url)
XMLDatabaseGui.DatabaseInfo
XMLDatabaseGui.DatabaseInfo(com.virtuosotechnologies.asaph.model.SongDatabase database,
java.lang.String n)
XMLDatabaseGui.DatabaseInfo
private XMLDatabaseGui.DatabaseInfo(com.virtuosotechnologies.asaph.model.SongDatabase database)
setDatabaseController
void setDatabaseController(com.virtuosotechnologies.asaph.maingui.DatabaseController databaseController)
isDirty
boolean isDirty()
getName
java.lang.String getName()
getKey
java.lang.Object getKey()
setKey
void setKey(java.lang.Object key)
getLocationString
java.lang.String getLocationString()
getURIString
java.lang.String getURIString()
getDatabaseIdentifier
com.virtuosotechnologies.asaph.maingui.DatabaseIdentifier getDatabaseIdentifier()
doSave
void doSave()
doSaveAs
void doSaveAs()
handleSave
private com.virtuosotechnologies.lib.asyncjob.AsyncJobExecution handleSave(java.lang.Object oldKey)
handleDatabaseDirtied
public boolean handleDatabaseDirtied()
- This is called when something attempts to mark this database dirty.
The connection should make a determination whether it makes sense to mark
the database as dirty, and it should return true or false depending on
whether it is being dirtied or not.
- Specified by:
handleDatabaseDirtied in interface com.virtuosotechnologies.asaph.maingui.DatabaseHandler
handleDatabaseGetInfo
public void handleDatabaseGetInfo()
- This is called when the user double-clicks or selects "Get Info" on this
database. The connection should typically respond by opening a pane with a
description of the database, such as its size, location, URI and other
attributes.
- Specified by:
handleDatabaseGetInfo in interface com.virtuosotechnologies.asaph.maingui.DatabaseHandler
handleDatabaseClosing
public boolean handleDatabaseClosing()
- This method is called when the main gui wants to close this database. The
connection may veto the close (for example, if the user cancels a save) by
returning false. Returning true indicates to the main gui that it can remove
the database from its list.
- Specified by:
handleDatabaseClosing in interface com.virtuosotechnologies.asaph.maingui.DatabaseHandler
handlePaneClosing
public boolean handlePaneClosing()
- This method is called when the main gui wants to close this pane. This may
be because the pane has had its close widget invoked, or because the gui is
shutting down.
The handler should respond by returning true if the pane may be closed, or
false if the pane may not be closed. Note that if false is returned, it may
cause a larger operation (such as quit) to abort. The handler should not
close the pane itself.
- Specified by:
handlePaneClosing in interface com.virtuosotechnologies.asaph.maingui.PaneHandler