Package weka.gui.sql

Class SqlViewerDialog

    • Constructor Detail

      • SqlViewerDialog

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

      • 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:
        JOptionPane
      • 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
      • main

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