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: 8034 $
Author:
FracPete (fracpete at waikato dot ac dot nz)
See Also:
  • Constructor Details

    • SqlViewerDialog

      public SqlViewerDialog(JFrame parent)
      initializes the dialog.
      Parameters:
      parent - the parent frame
  • Method Details

    • setVisible

      public void setVisible(boolean b)
      displays the dialog if TRUE.
      Overrides:
      setVisible in class Dialog
      Parameters:
      b - if true displaying the dialog, hiding otherwise
    • 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.
      Returns:
      the URL
    • getUser

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

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

      public String getQuery()
      returns the chosen query, if any.
      Returns:
      the query
    • getGenerateSparseData

      public boolean getGenerateSparseData()
      Returns whether sparse data is generated.
      Returns:
      true if sparse data is to be generated
    • resultChanged

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

      public static void main(String[] args)
      for testing only.
      Parameters:
      args - ignored