| |
|
| javax.swing.JComboBox net.sourceforge.squirrel_sql.fw.gui.SQLCatalogsComboBox
SQLCatalogsComboBox | public class SQLCatalogsComboBox extends JComboBox (Code) | | This JComboBox will display all the catalogs
in an SQL connection.
author: Colin Bell |
SQLCatalogsComboBox | public SQLCatalogsComboBox()(Code) | | Default ctor. Builds an empty combo box.
|
setCatalogs | public void setCatalogs(String[] catalogs, String selectedCatalog)(Code) | | Sets the catalogs that should appear in the catalog drop-down menu. Clear control and places all the
catalog names from the list in it in alphabetic sequence. Selects the specified catalog; If the
selectedCatalog is null, then selects the first catalog.
Parameters: catalogs - an array of catalogs names that should in the catalogs drop-down menu. Parameters: selectedCatalog - the catalog for the current connection that should be selected. |
setConnection | public void setConnection(ISQLConnection conn) throws SQLException(Code) | | Set the SQLConnection for this control. Clear control and place all the catalog names from
the connection in it in alphabetic sequence. Select the first catalog.
Parameters: conn - SQLConnection to retrieve catalog names from. throws: IllegalArgumentException - Thrown if a null SQLConnection passed. throws: SQLException - Thrown if an SQL exception occurs. |
setSelectedCatalog | public void setSelectedCatalog(String selectedCatalog)(Code) | | |
|
|
|