ca.sqlpower.wabit.swingui.report
Interface SwingContentRenderer

All Superinterfaces:
java.util.EventListener, edu.umd.cs.piccolo.event.PInputEventListener
All Known Implementing Classes:
CellSetSwingRenderer, ChartSwingRenderer, ImageSwingRenderer, ResultSetSwingRenderer, SwingLabel

public interface SwingContentRenderer
extends edu.umd.cs.piccolo.event.PInputEventListener

Renderers of this type are the swing compliment the ReportContentRenderer. The methods defined here are swing specific but would otherwise be included in the renderer this class wraps.


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.
 

Method Detail

getPropertiesPanel

ca.sqlpower.swingui.DataEntryPanel getPropertiesPanel()
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.


processEvent

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. 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 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.