Package weka.gui.sql

Class ResultPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener, QueryExecuteListener

public class ResultPanel extends JPanel implements QueryExecuteListener, ChangeListener
Represents a panel for displaying the results of a query in table format.
Version:
$Revision: 10222 $
Author:
FracPete (fracpete at waikato dot ac dot nz)
See Also:
  • Constructor Details

    • ResultPanel

      public ResultPanel(JFrame parent)
      initializes the panel
      Parameters:
      parent - the parent of this panel
  • Method Details

    • clear

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

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

      public void queryExecuted(QueryExecuteEvent evt)
      This method gets called when a query has been executed.
      Specified by:
      queryExecuted in interface QueryExecuteListener
      Parameters:
      evt - the event
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Invoked when the target of the listener has changed its state.
      Specified by:
      stateChanged in interface ChangeListener
    • getQueryPanel

      public QueryPanel getQueryPanel()
      returns the currently set QueryPanel, can be NULL
      Returns:
      the current QueryPanel, possibly NULL
    • setQueryPanel

      public void setQueryPanel(QueryPanel panel)
      sets the QueryPanel to use for displaying the query
      Parameters:
      panel - the panel used for displaying the query
    • addResultChangedListener

      public void addResultChangedListener(ResultChangedListener l)
      adds the given listener to the list of listeners
      Parameters:
      l - the listener to add to the list
    • removeResultChangedListener

      public void removeResultChangedListener(ResultChangedListener l)
      removes the given listener from the list of listeners
      Parameters:
      l - the listener to remove