Revision 3309M

org.pathvisio.gui.swing.propertypanel
Interface ContextSensitiveEditor

All Known Implementing Classes:
CommentsHandler, DataSourceHandler

public interface ContextSensitiveEditor

This interface indicates that the TypeHandler's editor is context sensitive and needs to have additional information before its TypeHandler.getValueEditor() is called.

For example, the DataSourceHandler will filter the list of available data sources depending on the organism the pathway is for. This information is dynamic, and TypeHandlers that implement this method will have updateEditor(org.pathvisio.gui.swing.SwingEngine, java.util.Collection, org.pathvisio.model.Pathway, org.pathvisio.gui.swing.propertypanel.PropertyView) called immediately before TypeHandler.getValueEditor() is called so that it can be prepared for use appropriately.

Author:
Mark Woon

Method Summary
 void updateEditor(SwingEngine swingEngine, java.util.Collection<PathwayElement> elements, Pathway pathway, PropertyView propHandler)
          Update the editor in preparation for use.
 

Method Detail

updateEditor

void updateEditor(SwingEngine swingEngine,
                  java.util.Collection<PathwayElement> elements,
                  Pathway pathway,
                  PropertyView propHandler)
Update the editor in preparation for use.

Parameters:
pathway - the current pathway
propHandler - the PropertyHandler containing the elements whose properties are being edited

Generated September 9 2010