br.mia.test.view
Class RowEditor

java.lang.Object
  extended by br.mia.test.view.RowEditor
All Implemented Interfaces:
javax.swing.CellEditor, javax.swing.table.TableCellEditor

public class RowEditor
extends java.lang.Object
implements javax.swing.table.TableCellEditor


Field Summary
protected  javax.swing.table.TableCellEditor defaultEditor
           
protected  javax.swing.table.TableCellEditor editor
           
protected  java.util.Hashtable<java.lang.Object,java.lang.Object> editors
           
 
Constructor Summary
RowEditor(javax.swing.JTable table)
           
 
Method Summary
 void addCellEditorListener(javax.swing.event.CellEditorListener l)
           
 void cancelCellEditing()
           
 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 anEvent)
           
 void removeCellEditorListener(javax.swing.event.CellEditorListener l)
           
protected  void selectEditor(java.awt.event.MouseEvent e)
           
 void setEditorAt(int row, javax.swing.table.TableCellEditor editor)
           
 boolean shouldSelectCell(java.util.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 java.util.Hashtable<java.lang.Object,java.lang.Object> editors

editor

protected javax.swing.table.TableCellEditor editor

defaultEditor

protected javax.swing.table.TableCellEditor defaultEditor
Constructor Detail

RowEditor

public RowEditor(javax.swing.JTable table)
Method Detail

setEditorAt

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

getTableCellEditorComponent

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

getCellEditorValue

public java.lang.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(java.util.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(java.util.EventObject anEvent)
Specified by:
shouldSelectCell in interface javax.swing.CellEditor

selectEditor

protected void selectEditor(java.awt.event.MouseEvent e)


Copyright © 2009. All Rights Reserved.