unbbayes.gui.table
Class RadioButtonCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by unbbayes.gui.table.RadioButtonCellEditor
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor

public class RadioButtonCellEditor
extends AbstractCellEditor
implements TableCellEditor

Adapted from source code of javax.swing.DefaultCellEditor

See Also:
Serialized Form

Field Summary
protected  int clickCountToStart
           
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
RadioButtonCellEditor()
           
 
Method Summary
 void cancelCellEditing()
           
 Object getCellEditorValue()
           
 int getClickCountToStart()
           
 Component getComponent()
           
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int col)
           
 boolean isCellEditable(EventObject anEvent)
           
 boolean shouldSelectCell(EventObject anEvent)
           
 boolean stopCellEditing(EventObject anEvent)
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, 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, removeCellEditorListener, stopCellEditing
 

Field Detail

clickCountToStart

protected int clickCountToStart
Constructor Detail

RadioButtonCellEditor

public RadioButtonCellEditor()
Method Detail

getTableCellEditorComponent

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

getComponent

public Component getComponent()

getClickCountToStart

public int getClickCountToStart()

getCellEditorValue

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

isCellEditable

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

shouldSelectCell

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

stopCellEditing

public boolean stopCellEditing(EventObject anEvent)

cancelCellEditing

public void cancelCellEditing()
Specified by:
cancelCellEditing in interface CellEditor
Overrides:
cancelCellEditing in class AbstractCellEditor


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