at.tuwien.ifs.commons.gui.controls.swing.table
Class ButtonCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by at.tuwien.ifs.commons.gui.controls.swing.table.ButtonCellEditor
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor

public class ButtonCellEditor
extends AbstractCellEditor
implements TableCellEditor

Version:
$Id: ButtonCellEditor.java 3876 2010-11-02 15:10:17Z frank $
Author:
Jakob Frank
See Also:
Serialized Form

Field Summary
(package private)  JButton button
           
private static long serialVersionUID
           
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ButtonCellEditor()
           
 
Method Summary
 Object getCellEditorValue()
           
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
           
 boolean shouldSelectCell(EventObject anEvent)
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, stopCellEditing
 
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, isCellEditable, removeCellEditorListener, stopCellEditing
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

button

JButton button
Constructor Detail

ButtonCellEditor

public ButtonCellEditor()
Method Detail

getCellEditorValue

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

getTableCellEditorComponent

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

shouldSelectCell

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