|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
weka.gui.explorer.SqlPanel
public class SqlPanel
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:
weka.gui.explorer.SqlPanel:standalone
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected JButton |
m_ButtonLoad
the Load button |
protected weka.gui.explorer.Explorer |
m_Explorer
the parent frame |
protected JLabel |
m_LabelQuery
displays the current query |
protected weka.gui.Logger |
m_Log
The destination for log/status messages |
protected JPanel |
m_PanelButtons
the panel for the buttons |
protected PropertyChangeSupport |
m_Support
Manages sending notifications to people when we change the set of working instances. |
protected weka.gui.sql.SqlViewer |
m_Viewer
the SQL panel |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
SqlPanel()
initializes the panel |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds a PropertyChangeListener who will be notified of value changes. |
weka.gui.explorer.Explorer |
getExplorer()
returns the parent Explorer frame |
String |
getTabTitle()
Returns the title for the tab in the Explorer |
String |
getTabTitleToolTip()
Returns the tooltip for the tab in the Explorer |
protected void |
initGUI()
initializes the GUI |
static void |
main(String[] args)
For testing only. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a PropertyChangeListener. |
void |
setExplorer(weka.gui.explorer.Explorer parent)
Sets the Explorer to use as parent frame (used for sending notifications about changes in the data) |
void |
setInstances(weka.core.Instances inst)
ignored |
void |
setLog(weka.gui.Logger newLog)
Sets the Logger to receive informational messages |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected weka.gui.explorer.Explorer m_Explorer
protected PropertyChangeSupport m_Support
protected weka.gui.Logger m_Log
protected weka.gui.sql.SqlViewer m_Viewer
protected JPanel m_PanelButtons
protected JButton m_ButtonLoad
protected JLabel m_LabelQuery
| Constructor Detail |
|---|
public SqlPanel()
| Method Detail |
|---|
protected void initGUI()
public void setExplorer(weka.gui.explorer.Explorer parent)
setExplorer in interface weka.gui.explorer.Explorer.ExplorerPanelparent - the parent framepublic weka.gui.explorer.Explorer getExplorer()
getExplorer in interface weka.gui.explorer.Explorer.ExplorerPanelpublic String getTabTitle()
getTabTitle in interface weka.gui.explorer.Explorer.ExplorerPanelpublic String getTabTitleToolTip()
getTabTitleToolTip in interface weka.gui.explorer.Explorer.ExplorerPanelpublic void setInstances(weka.core.Instances inst)
setInstances in interface weka.gui.explorer.Explorer.ExplorerPanelinst - ignoredpublic void setLog(weka.gui.Logger newLog)
setLog in interface weka.gui.explorer.Explorer.LogHandlernewLog - the Logger that will now get info messagespublic void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener in class Containerl - a value of type 'PropertyChangeListener'public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener in class Componentl - a value of type 'PropertyChangeListener'public static void main(String[] args)
args - commandline arguments - ignored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||