Watcher.v2_1
Class CellEditor

java.lang.Object
  |
  +--javax.swing.AbstractCellEditor
        |
        +--javax.swing.DefaultCellEditor
              |
              +--Watcher.v2_1.CellEditor
All Implemented Interfaces:
javax.swing.CellEditor, java.io.Serializable, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor

class CellEditor
extends javax.swing.DefaultCellEditor

Internal class which extends DefaultCellEditor. An instance of this class is used as CellEditor of the table. The class redefines a method which returns wether the cells are editable. It returns the value returned from Table.isCellEditable().

See Also:
Serialized Form

Inner classes inherited from class javax.swing.DefaultCellEditor
javax.swing.DefaultCellEditor.EditorDelegate
 
Field Summary
private  Table table
           
 
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
CellEditor(Table table)
          Constructor.
 
Method Summary
 boolean isCellEditable(java.util.EventObject eobj)
          Redefines this method to be able to prevent cell editing.
 
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTableCellEditorComponent, getTreeCellEditorComponent, setClickCountToStart, shouldSelectCell, stopCellEditing
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, removeCellEditorListener
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
 

Field Detail

table

private Table table
Constructor Detail

CellEditor

public CellEditor(Table table)
Constructor.
Parameters:
table - Reference to the Table class.
Method Detail

isCellEditable

public boolean isCellEditable(java.util.EventObject eobj)
Redefines this method to be able to prevent cell editing.
Overrides:
isCellEditable in class javax.swing.DefaultCellEditor