de.kleopatra.view.table
Class FixedGenericCellEditor

java.lang.Object
  extended byjavax.swing.AbstractCellEditor
      extended byjavax.swing.DefaultCellEditor
          extended byde.kleopatra.view.table.FixedGenericCellEditor
All Implemented Interfaces:
javax.swing.CellEditor, java.io.Serializable, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor

public class FixedGenericCellEditor
extends javax.swing.DefaultCellEditor

Fixed JTable.GenericCellEditor. Changes tries to base the type of the created object on the type of the given value first instead of on the type as returned by table.getColumnClass as the original does. the latter is doing nonsense if the columnClass is an interface

Version:
$Revision: 1.1.1.1 $ - $Date: 2003/10/14 11:13:47 $
Author:
(C) Jeanette Winzenburg, Berlin
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.DefaultCellEditor
javax.swing.DefaultCellEditor.EditorDelegate
 
Field Summary
 
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
FixedGenericCellEditor()
           
 
Method Summary
 java.lang.Object getCellEditorValue()
           
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
           
 boolean isCellEditable(java.util.EventObject e)
           
 boolean stopCellEditing()
           
 
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, setClickCountToStart, shouldSelectCell
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
 

Constructor Detail

FixedGenericCellEditor

public FixedGenericCellEditor()
Method Detail

isCellEditable

public boolean isCellEditable(java.util.EventObject e)

stopCellEditing

public boolean stopCellEditing()

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int row,
                                                      int column)

getCellEditorValue

public java.lang.Object getCellEditorValue()


Copyright © 2003, 2004 SwingEmpire Jeanette Winzenburg. All Rights Reserved.