fr.orsay.lri.varna.components
Class ActionEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by fr.orsay.lri.varna.components.ActionEditor
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor

public class ActionEditor
extends AbstractCellEditor
implements TableCellEditor

See Also:
Serialized Form

Field Summary
(package private)  JButton _btn
           
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ActionEditor(ActionListener a)
           
 
Method Summary
 Object getCellEditorValue()
           
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int rowIndex, int vColIndex)
           
 boolean isCellEditable(EventObject anEvent)
           
 boolean shouldSelectCell(EventObject anEvent)
           
 boolean stopCellEditing()
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, 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, cancelCellEditing, removeCellEditorListener
 

Field Detail

_btn

JButton _btn
Constructor Detail

ActionEditor

public ActionEditor(ActionListener a)
Method Detail

getTableCellEditorComponent

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

getCellEditorValue

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

shouldSelectCell

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

isCellEditable

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

stopCellEditing

public boolean stopCellEditing()
Specified by:
stopCellEditing in interface CellEditor
Overrides:
stopCellEditing in class AbstractCellEditor