pt.moredata.widgets.table
Class RadioButtonEditor

java.lang.Object
  extended bypt.moredata.widgets.table.RadioButtonEditor
All Implemented Interfaces:
javax.swing.CellEditor, javax.swing.table.TableCellEditor

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

Description of the Class

Author:
aricardo

Constructor Summary
RadioButtonEditor()
          Constructor for the RadioButtonEditor object
RadioButtonEditor(java.util.Vector text)
          Constructor for the RadioButtonEditor object
 
Method Summary
 void addCellEditorListener(javax.swing.event.CellEditorListener l)
          Adds a feature to the CellEditorListener attribute of the RadioButtonEditor object
 void cancelCellEditing()
          Description of the Method
 java.lang.Object getCellEditorValue()
          Gets the cellEditorValue attribute of the RadioButtonEditor object
 javax.swing.JRadioButton getRadioButton(int idx)
          Gets the radioButton attribute of the RadioButtonEditor object
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
          Gets the tableCellEditorComponent attribute of the RadioButtonEditor object
 boolean isCellEditable(java.util.EventObject anEvent)
          Gets the cellEditable attribute of the RadioButtonEditor object
 void removeCellEditorListener(javax.swing.event.CellEditorListener l)
          Description of the Method
 void setData(java.util.Vector text)
          Sets the data attribute of the RadioButtonEditor object
 boolean shouldSelectCell(java.util.EventObject anEvent)
          Description of the Method
 boolean stopCellEditing()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadioButtonEditor

public RadioButtonEditor()
Constructor for the RadioButtonEditor object


RadioButtonEditor

public RadioButtonEditor(java.util.Vector text)
Constructor for the RadioButtonEditor object

Parameters:
text - Description of the Parameter
Method Detail

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int row,
                                                      int column)
Gets the tableCellEditorComponent attribute of the RadioButtonEditor object

Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor
Parameters:
table - Description of the Parameter
value - Description of the Parameter
isSelected - Description of the Parameter
row - Description of the Parameter
column - Description of the Parameter
Returns:
The tableCellEditorComponent value

getCellEditorValue

public java.lang.Object getCellEditorValue()
Gets the cellEditorValue attribute of the RadioButtonEditor object

Specified by:
getCellEditorValue in interface javax.swing.CellEditor
Returns:
The cellEditorValue value

isCellEditable

public boolean isCellEditable(java.util.EventObject anEvent)
Gets the cellEditable attribute of the RadioButtonEditor object

Specified by:
isCellEditable in interface javax.swing.CellEditor
Parameters:
anEvent - Description of the Parameter
Returns:
The cellEditable value

shouldSelectCell

public boolean shouldSelectCell(java.util.EventObject anEvent)
Description of the Method

Specified by:
shouldSelectCell in interface javax.swing.CellEditor
Parameters:
anEvent - Description of the Parameter
Returns:
Description of the Return Value

stopCellEditing

public boolean stopCellEditing()
Description of the Method

Specified by:
stopCellEditing in interface javax.swing.CellEditor
Returns:
Description of the Return Value

cancelCellEditing

public void cancelCellEditing()
Description of the Method

Specified by:
cancelCellEditing in interface javax.swing.CellEditor

addCellEditorListener

public void addCellEditorListener(javax.swing.event.CellEditorListener l)
Adds a feature to the CellEditorListener attribute of the RadioButtonEditor object

Specified by:
addCellEditorListener in interface javax.swing.CellEditor
Parameters:
l - The feature to be added to the CellEditorListener attribute

removeCellEditorListener

public void removeCellEditorListener(javax.swing.event.CellEditorListener l)
Description of the Method

Specified by:
removeCellEditorListener in interface javax.swing.CellEditor
Parameters:
l - Description of the Parameter

setData

public void setData(java.util.Vector text)
Sets the data attribute of the RadioButtonEditor object

Parameters:
text - The new data value

getRadioButton

public javax.swing.JRadioButton getRadioButton(int idx)
Gets the radioButton attribute of the RadioButtonEditor object

Parameters:
idx - Description of the Parameter
Returns:
The radioButton value