org.embl.ebi.escience.scuflui.treeview
Class ScuflModelTreeTable.ScuflModelTreeTableCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by javax.swing.DefaultCellEditor
          extended by org.embl.ebi.escience.scuflui.treeview.ScuflModelTreeTable.ScuflModelTreeTableCellEditor
All Implemented Interfaces:
java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor
Enclosing class:
ScuflModelTreeTable

public class ScuflModelTreeTable.ScuflModelTreeTableCellEditor
extends javax.swing.DefaultCellEditor

The editor class is aware that the processor nodes should be edited by using the getName method rather than toString to fetch their initial value

See Also:
Serialized Form

Constructor Summary
ScuflModelTreeTable.ScuflModelTreeTableCellEditor()
           
 
Method Summary
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int r, int c)
           
 boolean isCellEditable(java.util.EventObject e)
          This is overridden to forward the event to the tree.
 
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTreeCellEditorComponent, setClickCountToStart, shouldSelectCell, stopCellEditing
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, getCellEditorListeners, removeCellEditorListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
 

Constructor Detail

ScuflModelTreeTable.ScuflModelTreeTableCellEditor

public ScuflModelTreeTable.ScuflModelTreeTableCellEditor()
Method Detail

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int r,
                                                      int c)
Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor
Overrides:
getTableCellEditorComponent in class javax.swing.DefaultCellEditor

isCellEditable

public boolean isCellEditable(java.util.EventObject e)
This is overridden to forward the event to the tree. This will return true if the click count >= 3, or the event is null.

Specified by:
isCellEditable in interface javax.swing.CellEditor
Overrides:
isCellEditable in class javax.swing.DefaultCellEditor