unbbayes.gui.table
Class EachRowEditor

java.lang.Object
  extended by unbbayes.gui.table.EachRowEditor
All Implemented Interfaces:
CellEditor, TableCellEditor

public class EachRowEditor
extends Object
implements TableCellEditor

Each row TableCellEditor


Field Summary
protected  TableCellEditor defaultEditor
           
protected  TableCellEditor editor
           
protected  Hashtable editors
           
 
Constructor Summary
EachRowEditor(JTable table)
          Constructs a EachRowEditor.
 
Method Summary
 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)
           
protected  void selectEditor(MouseEvent e)
           
 void setEditorAt(int row, TableCellEditor editor)
           
 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

EachRowEditor

public EachRowEditor(JTable table)
Constructs a EachRowEditor. create default editor

See Also:
TableCellEditor, DefaultCellEditor
Method Detail

setEditorAt

public void setEditorAt(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

selectEditor

protected void selectEditor(MouseEvent e)


Copyright © 2001-2010 University of Brasilia - UnB. All Rights Reserved.