ca.sqlpower.wabit.swingui
Class QueryController

java.lang.Object
  extended by ca.sqlpower.wabit.swingui.QueryController

public class QueryController
extends java.lang.Object

This is the controller between the QueryCache and the QueryPen. It will pass relevant events from the QueryPen to the QueryCache like Containers being added and removed.


Constructor Summary
QueryController(ca.sqlpower.query.Query cache, ca.sqlpower.swingui.querypen.QueryPen pen, javax.swing.JComboBox dataSourceComboBox, javax.swing.text.JTextComponent textComponent, javax.swing.JSlider zoomSlider)
          This constructor will attach listeners to the QueryPen to update the state of the QueryImpl.
 
Method Summary
 void disconnect()
          This disconnects the QueryController from the QueryPen it started to listen to when it was created.
 void listenToCellRenderer(ComponentCellRenderer renderer)
           
 void unlistenToCellRenderer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryController

public QueryController(ca.sqlpower.query.Query cache,
                       ca.sqlpower.swingui.querypen.QueryPen pen,
                       javax.swing.JComboBox dataSourceComboBox,
                       javax.swing.text.JTextComponent textComponent,
                       javax.swing.JSlider zoomSlider)
This constructor will attach listeners to the QueryPen to update the state of the QueryImpl. The dataSourceComboBox will also have a listener added so the QueryImpl can track which database to execute on.

Method Detail

disconnect

public void disconnect()
This disconnects the QueryController from the QueryPen it started to listen to when it was created. This should be called when this controller is no longer needed.


listenToCellRenderer

public void listenToCellRenderer(ComponentCellRenderer renderer)

unlistenToCellRenderer

public void unlistenToCellRenderer()


Copyright © 2009. All Rights Reserved.