eu.keep.uphec.software
Class EachRowEditor

Object
  extended by EachRowEditor
All Implemented Interfaces:
javax.swing.CellEditor, javax.swing.table.TableCellEditor

public class EachRowEditor
extends Object
implements javax.swing.table.TableCellEditor


Field Summary
protected  javax.swing.table.TableCellEditor defaultEditor
           
protected  javax.swing.table.TableCellEditor editor
           
protected  Hashtable editors
           
 
Constructor Summary
EachRowEditor(javax.swing.JTable table)
          Constructs a EachRowEditor.
 
Method Summary
 void addCellEditorListener(javax.swing.event.CellEditorListener l)
           
 void cancelCellEditing()
           
 Object getCellEditorValue()
           
 Component getTableCellEditorComponent(javax.swing.JTable table, Object value, boolean isSelected, int row, int column)
           
 boolean isCellEditable(EventObject anEvent)
           
 void removeCellEditorListener(javax.swing.event.CellEditorListener l)
           
protected  void selectEditor(MouseEvent e)
           
 void setEditorAt(int row, javax.swing.table.TableCellEditor editor)
           
 boolean shouldSelectCell(EventObject anEvent)
           
 boolean stopCellEditing()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

editors

protected Hashtable editors

editor

protected javax.swing.table.TableCellEditor editor

defaultEditor

protected javax.swing.table.TableCellEditor defaultEditor
Constructor Detail

EachRowEditor

public EachRowEditor(javax.swing.JTable table)
Constructs a EachRowEditor. create default editor see TableCellEditor see DefaultCellEditor

Method Detail

setEditorAt

public void setEditorAt(int row,
                        javax.swing.table.TableCellEditor editor)

getTableCellEditorComponent

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

getCellEditorValue

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

stopCellEditing

public boolean stopCellEditing()
Specified by:
stopCellEditing in interface javax.swing.CellEditor

cancelCellEditing

public void cancelCellEditing()
Specified by:
cancelCellEditing in interface javax.swing.CellEditor

isCellEditable

public boolean isCellEditable(EventObject anEvent)
Specified by:
isCellEditable in interface javax.swing.CellEditor

addCellEditorListener

public void addCellEditorListener(javax.swing.event.CellEditorListener l)
Specified by:
addCellEditorListener in interface javax.swing.CellEditor

removeCellEditorListener

public void removeCellEditorListener(javax.swing.event.CellEditorListener l)
Specified by:
removeCellEditorListener in interface javax.swing.CellEditor

shouldSelectCell

public boolean shouldSelectCell(EventObject anEvent)
Specified by:
shouldSelectCell in interface javax.swing.CellEditor

selectEditor

protected void selectEditor(MouseEvent e)