程序包 weka.gui.sql

类 ConnectionPanel

所有已实现的接口:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CaretListener

public class ConnectionPanel extends JPanel implements CaretListener
Enables the user to insert a database URL, plus user/password to connect to this database.
版本:
$Revision: 7059 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 字段详细资料

    • HISTORY_NAME

      public static final String HISTORY_NAME
      the name of the history.
      另请参阅:
  • 构造器详细资料

    • ConnectionPanel

      public ConnectionPanel(JFrame parent)
      initializes the panel.
      参数:
      parent - the parent of this panel
  • 方法详细资料

    • clear

      public void clear()
      sets the parameters back to standard.
    • setFocus

      public void setFocus()
      sets the focus in a designated control.
    • setURL

      public void setURL(String url)
      sets the URL.
      参数:
      url - the new value of the URL
    • getURL

      public String getURL()
      returns the current URL.
      返回:
      the current URL
    • setUser

      public void setUser(String user)
      sets the User.
      参数:
      user - the new value of the User
    • getUser

      public String getUser()
      returns the current User.
      返回:
      the current user
    • setPassword

      public void setPassword(String pw)
      sets the Password.
      参数:
      pw - the new value of the Password
    • getPassword

      public String getPassword()
      returns the current Password.
      返回:
      the current password
    • setHistory

      public void setHistory(DefaultListModel history)
      sets the local history to the given one.
      参数:
      history - the history to use
    • getHistory

      public DefaultListModel getHistory()
      returns the history.
      返回:
      the current history
    • showHistory

      public void showHistory()
      displays the query history.
    • addConnectionListener

      public void addConnectionListener(ConnectionListener l)
      adds the given listener to the list of listeners.
      参数:
      l - the listener to add to the list
    • removeConnectionListener

      public void removeConnectionListener(ConnectionListener l)
      removes the given listener from the list of listeners.
      参数:
      l - the listener to remove
    • addHistoryChangedListener

      public void addHistoryChangedListener(HistoryChangedListener l)
      adds the given listener to the list of listeners.
      参数:
      l - the listener to add to the list
    • removeHistoryChangedListener

      public void removeHistoryChangedListener(HistoryChangedListener l)
      removes the given listener from the list of listeners.
      参数:
      l - the listener to remove
    • caretUpdate

      public void caretUpdate(CaretEvent event)
      Called when the caret position is updated.
      指定者:
      caretUpdate 在接口中 CaretListener
      参数:
      event - the event to process