Public Member Functions | Package Attributes

alma.demo.dyncomp.MyCellEditor Class Reference

Inherits javax::swing::AbstractCellEditor, and javax::swing::table::TableCellEditor.

List of all members.

Public Member Functions

 MyCellEditor (JDynAct dynActDlg)
Component getTableCellEditorComponent (JTable table, Object value, boolean isSelected, int row, int column)
void stopEditing ()
Object getCellEditorValue ()

Package Attributes

JDynAct m_dynActDlg
JButton releaseBtn

Detailed Description

MyCellEditor is the cell editor that shows the button in the table

Author:
Alessandro Caproni, 2003, Nov 7

Constructor & Destructor Documentation

alma.demo.dyncomp.MyCellEditor.MyCellEditor ( JDynAct  dynActDlg  ) 

Member Function Documentation

Object alma.demo.dyncomp.MyCellEditor.getCellEditorValue (  ) 

Return the value of the just edit cell

Returns:
Always null (we use the cell to show a button not to store a value)
Component alma.demo.dyncomp.MyCellEditor.getTableCellEditorComponent ( JTable  table,
Object  value,
boolean  isSelected,
int  row,
int  column 
)

Return the component to show when the user edit the second column of the table

Parameters:
table The table that has to be edit
value The actual value of the cell (not used)
isSelected 
row The row of the cell
column The column of the cell
Returns:
The button to release the component

References alma.demo.dyncomp.MyCellEditor.m_dynActDlg, and alma.demo.dyncomp.MyCellEditor.releaseBtn.

void alma.demo.dyncomp.MyCellEditor.stopEditing (  ) 

Stops the editing so that the button is deleted

References alma.demo.dyncomp.MyCellEditor.releaseBtn.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties