com.altair.hwm.beans.utils
Class HWMTableCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by javax.swing.DefaultCellEditor
          extended by com.altair.hwm.beans.utils.HWMTableCellEditor
All Implemented Interfaces:
java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor

public class HWMTableCellEditor
extends javax.swing.DefaultCellEditor

Title: HWMTableCellEditor

Description: A generic cell editor for a table

Company: Altair Engineering, Inc.

See Also:
Serialized Form

Constructor Summary
HWMTableCellEditor(javax.swing.JTextField textField)
          Constructor.
 
Method Summary
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable tblTable, java.lang.Object objValue, boolean bIsSelected, int nRow, int nCol)
          Returns the appropriated editing component
 
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, getCellEditorListeners, removeCellEditorListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
 

Constructor Detail

HWMTableCellEditor

public HWMTableCellEditor(javax.swing.JTextField textField)
Constructor.

Parameters:
textField - The textfield used for editing
Method Detail

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable tblTable,
                                                      java.lang.Object objValue,
                                                      boolean bIsSelected,
                                                      int nRow,
                                                      int nCol)
Returns the appropriated editing component

Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor
Overrides:
getTableCellEditorComponent in class javax.swing.DefaultCellEditor
Parameters:
tblTable - The table to edit
objValue - The value of the cell
bIsSelected - True if cell is selected otherwise false
nRow - The index of the row the cell is located in.
nCol - The index of the column the cell is located in.
Returns:
Component The appropriate renderer