org.jurvis.swing.table
Class JvEachRowEditor

java.lang.Object
  extended by org.jurvis.swing.table.JvEachRowEditor
All Implemented Interfaces:
CellEditor, TableCellEditor

public class JvEachRowEditor
extends Object
implements TableCellEditor

each row TableCellEditor

Version:
1.0 10/20/98
Author:
Nobuo Tamemasa

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

Field Detail

editors

protected Hashtable editors

editor

protected TableCellEditor editor

defaultEditor

protected TableCellEditor defaultEditor
Constructor Detail

JvEachRowEditor

public JvEachRowEditor()
Constructs a EachRowEditor. create default editor

See Also:
TableCellEditor, DefaultCellEditor
Method Detail

add

public void add(int row,
                TableCellEditor editor)
Parameters:
row - table row
editor - table cell editor

getTableCellEditorComponent

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

getCellEditorValue

public Object getCellEditorValue()
Specified by:
getCellEditorValue in interface CellEditor

stopCellEditing

public boolean stopCellEditing()
Specified by:
stopCellEditing in interface CellEditor

cancelCellEditing

public void cancelCellEditing()
Specified by:
cancelCellEditing in interface CellEditor

isCellEditable

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

addCellEditorListener

public void addCellEditorListener(CellEditorListener l)
Specified by:
addCellEditorListener in interface CellEditor

removeCellEditorListener

public void removeCellEditorListener(CellEditorListener l)
Specified by:
removeCellEditorListener in interface CellEditor

shouldSelectCell

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


Copyright © 1999-2004 Neil W. Weber. All Rights Reserved.