Package weka.gui.sql

Class SqlViewerDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, ResultChangedListener

public class SqlViewerDialog extends JDialog implements ResultChangedListener
A little dialog containing the SqlViewer.
Version:
$Revision: 7899 $
Author:
FracPete (fracpete at waikato dot ac dot nz)
See Also:
  • Constructor Details

    • SqlViewerDialog

      public SqlViewerDialog(JFrame parent)
      initializes the dialog
  • Method Details

    • setVisible

      public void setVisible(boolean b)
      displays the dialog if TRUE
      Overrides:
      setVisible in class Dialog
    • getReturnValue

      public int getReturnValue()
      returns whether the user clicked OK (JOptionPane.OK_OPTION) or whether he cancelled the dialog (JOptionPane.CANCEL_OPTION)
      Returns:
      the return value
      See Also:
    • getURL

      public String getURL()
      returns the chosen URL, if any
    • getUser

      public String getUser()
      returns the chosen user, if any
    • getPassword

      public String getPassword()
      returns the chosen password, if any
    • getQuery

      public String getQuery()
      returns the chosen query, if any
    • resultChanged

      public void resultChanged(ResultChangedEvent evt)
      This method gets called when a query has been executed.
      Specified by:
      resultChanged in interface ResultChangedListener
    • main

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