当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
DatabaseExplorerUIs (Database Explorer) - NetBeans API Javadoc (Current Development Version)
org.netbeans.api.db.explorer.support
Class DatabaseExplorerUIs
java.lang.Object
org.netbeans.api.db.explorer.support.DatabaseExplorerUIs
public final class DatabaseExplorerUIs
- extends Object
This class contains utility methods for working with and/or displaying
database connections in the UI. Currently it provides a method for
populating a combo box with the list of database connections from
ConnectionManager
.
- Since:
- 1.18
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connect
public static void connect(JComboBox comboBox,
ConnectionManager connectionManager)
- Populates and manages the contents of the passed combo box. The combo box
contents consists of the database connections defined in
the passes instance of
ConnectionManager
and a Add Database Connection
item which displays the New Database Connection dialog when selected.
This method may cause the replacement of the combo box model,
thus the caller is recommended to register a
PropertyChangeListener
on the combo box when
it needs to check the combo box content when it changes.
- Parameters:
comboBox
- combo box to be filled with the database connections.