ca.sqlpower.wabit.swingui.report
Class CellSetSwingRenderer

java.lang.Object
  extended by ca.sqlpower.wabit.swingui.report.CellSetSwingRenderer
All Implemented Interfaces:
SwingContentRenderer, edu.umd.cs.piccolo.event.PInputEventListener, java.util.EventListener

public class CellSetSwingRenderer
extends java.lang.Object
implements SwingContentRenderer


Constructor Summary
CellSetSwingRenderer(CellSetRenderer renderer)
           
 
Method Summary
 ca.sqlpower.swingui.DataEntryPanel getPropertiesPanel()
          Returns the data entry panel that the user can use to manipulate all the properties of this content renderer.
 void processEvent(edu.umd.cs.piccolo.event.PInputEvent event, int type)
          This method comes from PInputEventListener but is documented here because it is not documented in PInputEventListener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellSetSwingRenderer

public CellSetSwingRenderer(CellSetRenderer renderer)
Method Detail

getPropertiesPanel

public ca.sqlpower.swingui.DataEntryPanel getPropertiesPanel()
Description copied from interface: SwingContentRenderer
Returns the data entry panel that the user can use to manipulate all the properties of this content renderer. Everything that can be maniuplated in the panel can also be done programatically (via the API) through the JavaBeans properties of this report content renderer.

NOTE: We thought we could get away with defining this here, because it's convenient to have the properties panel provided by the content renderer itself. However, it has proven to be a bit too much of a violation of the system design to put this Swing stuff into the core classes that implement this interface. So this method will be removed soon. Also pull out processEvent and the PInputEventListener interface with this method.

Specified by:
getPropertiesPanel in interface SwingContentRenderer

processEvent

public void processEvent(edu.umd.cs.piccolo.event.PInputEvent event,
                         int type)
Description copied from interface: SwingContentRenderer
This method comes from PInputEventListener but is documented here because it is not documented in PInputEventListener. This method is used to process key, mouse, mouse wheel, and focus events that occur in the view. This allows each renderer to change based on user input.

Specified by:
processEvent in interface SwingContentRenderer
Specified by:
processEvent in interface edu.umd.cs.piccolo.event.PInputEventListener
Parameters:
event - This is the input event given from some input by the user.
type - This is the type of input event. Valid values come from KeyEvent, MouseEvent, MouseWheelEvent, and FocusEvent


Copyright © 2009. All Rights Reserved.