ca.sqlpower.wabit.swingui
Class QueryPanel

java.lang.Object
  extended by ca.sqlpower.wabit.swingui.QueryPanel
All Implemented Interfaces:
ca.sqlpower.swingui.DataEntryPanel, WabitPanel

public class QueryPanel
extends java.lang.Object
implements WabitPanel


Constructor Summary
QueryPanel(WabitSwingSession session, QueryCache cache)
           
 
Method Summary
 boolean applyChanges()
           
 void discardChanges()
           
 void executeQueryInCache()
          This will execute the current query in the QueryCache and store a copy of the QueryCache in the queued list.
 javax.swing.JSplitPane getFullSplitPane()
           
 javax.swing.JComponent getPanel()
           
 ca.sqlpower.sqlobject.SQLObjectRoot getRootNode()
           
 javax.swing.JComponent getSourceComponent()
          Returns the component (often a JTree or JList, but can be anything) that contains all the workspace items that can be dragged into this editor.
 java.lang.String getTitle()
          Returns a suitable string that can be used in the title of a containing window or frame.
 javax.swing.JToolBar getToolbar()
          Returns the toolbar.
 boolean hasUnsavedChanges()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryPanel

public QueryPanel(WabitSwingSession session,
                  QueryCache cache)
Method Detail

executeQueryInCache

public void executeQueryInCache()
This will execute the current query in the QueryCache and store a copy of the QueryCache in the queued list.


getPanel

public javax.swing.JComponent getPanel()
Specified by:
getPanel in interface ca.sqlpower.swingui.DataEntryPanel

getFullSplitPane

public javax.swing.JSplitPane getFullSplitPane()

getRootNode

public ca.sqlpower.sqlobject.SQLObjectRoot getRootNode()

applyChanges

public boolean applyChanges()
Specified by:
applyChanges in interface ca.sqlpower.swingui.DataEntryPanel

discardChanges

public void discardChanges()
Specified by:
discardChanges in interface ca.sqlpower.swingui.DataEntryPanel

hasUnsavedChanges

public boolean hasUnsavedChanges()
Specified by:
hasUnsavedChanges in interface ca.sqlpower.swingui.DataEntryPanel

getTitle

public java.lang.String getTitle()
Description copied from interface: WabitPanel
Returns a suitable string that can be used in the title of a containing window or frame. Usually describes what the panel contains. (ex. "Query Editor" or "Report Editor")

Specified by:
getTitle in interface WabitPanel

getSourceComponent

public javax.swing.JComponent getSourceComponent()
Description copied from interface: WabitPanel
Returns the component (often a JTree or JList, but can be anything) that contains all the workspace items that can be dragged into this editor. The component will not be wrapped in a scroll pane; you get to do this yourself if your component needs one.

Specified by:
getSourceComponent in interface WabitPanel
Returns:
The component as described above, or null if nothing can be dropped on this panel.

getToolbar

public javax.swing.JToolBar getToolbar()
Description copied from interface: WabitPanel
Returns the toolbar. A null value means not to render the toolbar.

Specified by:
getToolbar in interface WabitPanel


Copyright © 2009. All Rights Reserved.