Revision 3309M

org.pathvisio.data
Interface DBConnectorSwing

All Known Implementing Classes:
DBConnDerby

public interface DBConnectorSwing

Interface to add user-interface functionality to DBConnection classes. When a database class implements this interface, it can provide dialogs for opening and creating a database of this type.


Method Summary
 java.lang.String openChooseDbDialog(java.awt.Component parent)
          This method will be called when the user needs to select a database.
 java.lang.String openNewDbDialog(java.awt.Component parent, java.lang.String defaultName)
          This method will be called when the user needs to select a database to create.
 

Method Detail

openChooseDbDialog

java.lang.String openChooseDbDialog(java.awt.Component parent)
This method will be called when the user needs to select a database. Open a dialog (e.g. FileDialog) in this method to let the user select the database and return the database name.

Parameters:
shell - The shell to create the dialog
Returns:
The database name that was selected by the user, or null if no database was selected

openNewDbDialog

java.lang.String openNewDbDialog(java.awt.Component parent,
                                 java.lang.String defaultName)
This method will be called when the user needs to select a database to create. Open a dialog (e.g. FileDialog) in this method to let the user select the new database name/file/directory and return the database name.

Parameters:
shell - The shell to create the dialog
Returns:
The database name to create, or null if no database was specified

Generated September 9 2010