com.altair.hwm.beans.utils
Class HWMTableCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
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
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 |
HWMTableCellEditor
public HWMTableCellEditor(javax.swing.JTextField textField)
- Constructor.
- Parameters:
textField
- The textfield used for editing
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 editobjValue
- The value of the cellbIsSelected
- True if cell is selected otherwise falsenRow
- 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