Revision 3309M

org.pathvisio.gui.swing.propertypanel
Class CommentsHandler

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by org.pathvisio.gui.swing.propertypanel.CommentsHandler
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.util.EventListener, javax.swing.CellEditor, javax.swing.table.TableCellEditor, ContextSensitiveEditor, TypeHandler

public class CommentsHandler
extends javax.swing.AbstractCellEditor
implements ContextSensitiveEditor, javax.swing.table.TableCellEditor, TypeHandler, java.awt.event.ActionListener

This class knows how to edit comments.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
CommentsHandler()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 java.lang.Object getCellEditorValue()
           
 javax.swing.table.TableCellRenderer getLabelRenderer()
          Gets the renderer used to display the label.
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
           
 PropertyType getType()
          The PropertyType this handler is responsible for.
 javax.swing.table.TableCellEditor getValueEditor()
          Gets the editor used to edit the value.
 javax.swing.table.TableCellRenderer getValueRenderer()
          Gets the renderer used to display the value.
 void updateEditor(SwingEngine aSwingEngine, java.util.Collection<PathwayElement> elements, Pathway pathway, PropertyView propHandler)
          Update the editor in preparation for use.
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Constructor Detail

CommentsHandler

public CommentsHandler()
Method Detail

getType

public PropertyType getType()
Description copied from interface: TypeHandler
The PropertyType this handler is responsible for.

Specified by:
getType in interface TypeHandler

getLabelRenderer

public javax.swing.table.TableCellRenderer getLabelRenderer()
Description copied from interface: TypeHandler
Gets the renderer used to display the label.

Specified by:
getLabelRenderer in interface TypeHandler
Returns:
the TableCellRenderer to use to display the label (if null, default will be used)

getValueRenderer

public javax.swing.table.TableCellRenderer getValueRenderer()
Description copied from interface: TypeHandler
Gets the renderer used to display the value.

Specified by:
getValueRenderer in interface TypeHandler
Returns:
the TableCellRenderer to use to display the value (if null, default will be used)

getValueEditor

public javax.swing.table.TableCellEditor getValueEditor()
Description copied from interface: TypeHandler
Gets the editor used to edit the value.

Specified by:
getValueEditor in interface TypeHandler
Returns:
the TableCellRenderer to use to edit the value (if null, default will be used)

updateEditor

public void updateEditor(SwingEngine aSwingEngine,
                         java.util.Collection<PathwayElement> elements,
                         Pathway pathway,
                         PropertyView propHandler)
Description copied from interface: ContextSensitiveEditor
Update the editor in preparation for use.

Specified by:
updateEditor in interface ContextSensitiveEditor
pathway - the current pathway
propHandler - the PropertyHandler containing the elements whose properties are being edited

getCellEditorValue

public java.lang.Object getCellEditorValue()
Specified by:
getCellEditorValue in interface javax.swing.CellEditor

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int row,
                                                      int column)
Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

Generated September 9 2010