站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

DatabaseExplorerUIs (Database Explorer) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.db/0 1.20.0 4

org.netbeans.api.db.explorer.support
Class DatabaseExplorerUIs

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

Method Summary
static void connect(JComboBox comboBox, ConnectionManager connectionManager)
          Populates and manages the contents of the passed combo box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.

org.netbeans.modules.db/0 1.20.0 4

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.