程序包 weka.gui

类 DatabaseConnectionDialog

所有已实现的接口:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class DatabaseConnectionDialog extends JDialog
A dialog to enter URL, username and password for a database connection.
版本:
$Revision: 7059 $
作者:
Dale Fletcher (dale@cs.waikato.ac.nz)
另请参阅:
  • 构造器详细资料

    • DatabaseConnectionDialog

      public DatabaseConnectionDialog(Frame parentFrame)
      Create database connection dialog.
      参数:
      parentFrame - the parent frame of the dialog
    • DatabaseConnectionDialog

      public DatabaseConnectionDialog(Frame parentFrame, String url, String uname)
      Create database connection dialog.
      参数:
      parentFrame - the parent frame of the dialog
      url - initial text for URL field
      uname - initial text for username field
    • DatabaseConnectionDialog

      public DatabaseConnectionDialog(Frame parentFrame, String url, String uname, boolean debug)
      Create database connection dialog.
      参数:
      parentFrame - the parent frame of the dialog
      url - initial text for URL field
      uname - initial text for username field
      debug - whether to display the debug checkbox
  • 方法详细资料

    • getURL

      public String getURL()
      Returns URL from dialog
      返回:
      URL string
    • getUsername

      public String getUsername()
      Returns Username from dialog
      返回:
      Username string
    • getPassword

      public String getPassword()
      Returns password from dialog
      返回:
      Password string
    • getDebug

      public boolean getDebug()
      Returns the debug flag
      返回:
      true if debugging should be enabled
    • getReturnValue

      public int getReturnValue()
      Returns which of OK or cancel was clicked from dialog
      返回:
      either JOptionPane.OK_OPTION or JOptionPane.CLOSED_OPTION
    • DbConnectionDialog

      public void DbConnectionDialog(String url, String uname)
      Display the database connection dialog
      参数:
      url - initial text for URL field
      uname - initial text for username field
    • DbConnectionDialog

      public void DbConnectionDialog(String url, String uname, boolean debug)
      Display the database connection dialog
      参数:
      url - initial text for URL field
      uname - initial text for username field
      debug - whether to display the debug checkbox
    • main

      public static void main(String[] args)
      for testing only