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

Quick Search    Search Deep

com.virtuosotechnologies.asaph.xmldatabase
Class XMLDatabaseGui.DatabaseInfo  view XMLDatabaseGui.DatabaseInfo download XMLDatabaseGui.DatabaseInfo.java

java.lang.Object
  extended bycom.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.


Field Summary
private  com.virtuosotechnologies.asaph.model.SongDatabase database_
           
private  com.virtuosotechnologies.asaph.maingui.DatabaseController databaseController_
           
private  java.lang.String defaultName_
           
private  javax.swing.JTextArea fileField_
           
private  java.io.File filePath_
           
private  boolean isDirty_
           
private  boolean monolithic_
           
private  java.lang.String name_
           
private  com.virtuosotechnologies.asaph.maingui.PaneController paneController_
           
private  javax.swing.JLabel savedLabel_
           
private  javax.swing.JTextArea uriField_
           
private  java.net.URL url_
           
 
Constructor Summary
private XMLDatabaseGui.DatabaseInfo(com.virtuosotechnologies.asaph.model.SongDatabase database)
           
(package private) XMLDatabaseGui.DatabaseInfo(com.virtuosotechnologies.asaph.model.SongDatabase database, java.io.File f)
           
(package private) XMLDatabaseGui.DatabaseInfo(com.virtuosotechnologies.asaph.model.SongDatabase database, java.lang.String n)
           
(package private) XMLDatabaseGui.DatabaseInfo(com.virtuosotechnologies.asaph.model.SongDatabase database, java.net.URL url)
           
 
Method Summary
(package private)  void doSave()
           
(package private)  void doSaveAs()
           
(package private)  com.virtuosotechnologies.asaph.maingui.DatabaseIdentifier getDatabaseIdentifier()
           
(package private)  java.lang.Object getKey()
           
(package private)  java.lang.String getLocationString()
           
(package private)  java.lang.String getName()
           
(package private)  java.lang.String getURIString()
           
 boolean handleDatabaseClosing()
          This method is called when the main gui wants to close this database.
 boolean handleDatabaseDirtied()
          This is called when something attempts to mark this database dirty.
 void handleDatabaseGetInfo()
          This is called when the user double-clicks or selects "Get Info" on this database.
 boolean handlePaneClosing()
          This method is called when the main gui wants to close this pane.
private  com.virtuosotechnologies.lib.asyncjob.AsyncJobExecution handleSave(java.lang.Object oldKey)
           
(package private)  boolean isDirty()
           
(package private)  void setDatabaseController(com.virtuosotechnologies.asaph.maingui.DatabaseController databaseController)
           
(package private)  void setKey(java.lang.Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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_
Constructor Detail

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)
Method Detail

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