Class SqlPanel

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible, weka.gui.explorer.Explorer.ExplorerPanel, weka.gui.explorer.Explorer.LogHandler

    public class SqlPanel
    extends JPanel
    implements weka.gui.explorer.Explorer.ExplorerPanel, weka.gui.explorer.Explorer.LogHandler
    A simple demonstration for extending the Explorer by another tab, in this case the SqlViewer (as an extra tab instead of only the button in the PreprocessPanel).
    The Explorer.props file needs to edited to make it available and since this tab does not rely on the PreprocessPanel, one should add the "standalone" option. In other words, this would be the string to be added to the list of tabs in the Explorer.props file:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Explorer

        protected weka.gui.explorer.Explorer m_Explorer
        the parent frame
      • m_Support

        protected PropertyChangeSupport m_Support
        Manages sending notifications to people when we change the set of working instances.
      • m_Log

        protected weka.gui.Logger m_Log
        The destination for log/status messages
      • m_Viewer

        protected weka.gui.sql.SqlViewer m_Viewer
        the SQL panel
      • m_PanelButtons

        protected JPanel m_PanelButtons
        the panel for the buttons
      • m_ButtonLoad

        protected BaseButton m_ButtonLoad
        the Load button
      • m_LabelQuery

        protected JLabel m_LabelQuery
        displays the current query
    • Constructor Detail

      • SqlPanel

        public SqlPanel()
        initializes the panel
    • Method Detail

      • initGUI

        protected void initGUI()
        initializes the GUI
      • setExplorer

        public void setExplorer​(weka.gui.explorer.Explorer parent)
        Sets the Explorer to use as parent frame (used for sending notifications about changes in the data)
        Specified by:
        setExplorer in interface weka.gui.explorer.Explorer.ExplorerPanel
        parent - the parent frame
      • getExplorer

        public weka.gui.explorer.Explorer getExplorer()
        returns the parent Explorer frame
        Specified by:
        getExplorer in interface weka.gui.explorer.Explorer.ExplorerPanel
        the parent
      • getTabTitle

        public String getTabTitle()
        Returns the title for the tab in the Explorer
        Specified by:
        getTabTitle in interface weka.gui.explorer.Explorer.ExplorerPanel
        the title of this tab
      • getTabTitleToolTip

        public String getTabTitleToolTip()
        Returns the tooltip for the tab in the Explorer
        Specified by:
        getTabTitleToolTip in interface weka.gui.explorer.Explorer.ExplorerPanel
        the tooltip of this tab
      • setInstances

        public void setInstances​(weka.core.Instances inst)
        Specified by:
        setInstances in interface weka.gui.explorer.Explorer.ExplorerPanel
        inst - ignored
      • setLog

        public void setLog​(weka.gui.Logger newLog)
        Sets the Logger to receive informational messages
        Specified by:
        setLog in interface weka.gui.explorer.Explorer.LogHandler
        newLog - the Logger that will now get info messages
      • addPropertyChangeListener

        public void addPropertyChangeListener​(PropertyChangeListener l)
        Adds a PropertyChangeListener who will be notified of value changes.
        addPropertyChangeListener in class Container
        l - a value of type 'PropertyChangeListener'
      • main

        public static void main​(String[] args)
        For testing only.
        args - commandline arguments - ignored