org.embl.ebi.escience.treetable
Class JTreeTable.TreeTableCellEditor

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

public class JTreeTable.TreeTableCellEditor
extends javax.swing.DefaultCellEditor

TreeTableCellEditor implementation. Component returned is the JTree.

See Also:
Serialized Form

Constructor Summary
JTreeTable.TreeTableCellEditor()
           
 
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

JTreeTable.TreeTableCellEditor

public JTreeTable.TreeTableCellEditor()
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