ALMA Computing Group

alma::demo::dyncomp::MyCellEditor Class Reference

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

Collaboration diagram for alma::demo::dyncomp::MyCellEditor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MyCellEditor (JDynAct dynActDlg)
Component 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.
void stopEditing ()
 Stops the editing so that the button is deleted.
Object getCellEditorValue ()
 Return the value of the just edit cell.

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

Definition at line 17 of file MyCellEditor.java.


Constructor & Destructor Documentation

alma::demo::dyncomp::MyCellEditor::MyCellEditor JDynAct  dynActDlg  )  [inline]
 

Definition at line 22 of file MyCellEditor.java.

References m_dynActDlg, and releaseBtn.


Member Function Documentation

Object alma::demo::dyncomp::MyCellEditor::getCellEditorValue  )  [inline]
 

Return the value of the just edit cell.

Returns:
Always null (we use the cell to show a button not to store a value)
Definition at line 62 of file MyCellEditor.java.

Component alma::demo::dyncomp::MyCellEditor::getTableCellEditorComponent JTable  table,
Object  value,
boolean  isSelected,
int  row,
int  column
[inline]
 

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
Definition at line 37 of file MyCellEditor.java.

References m_dynActDlg, and releaseBtn.

void alma::demo::dyncomp::MyCellEditor::stopEditing  )  [inline]
 

Stops the editing so that the button is deleted.

Definition at line 53 of file MyCellEditor.java.

References releaseBtn.


Member Data Documentation

JDynAct alma::demo::dyncomp::MyCellEditor::m_dynActDlg [package]
 

Definition at line 19 of file MyCellEditor.java.

Referenced by getTableCellEditorComponent(), and MyCellEditor().

JButton alma::demo::dyncomp::MyCellEditor::releaseBtn [package]
 

Definition at line 20 of file MyCellEditor.java.

Referenced by getTableCellEditorComponent(), MyCellEditor(), and stopEditing().


The documentation for this class was generated from the following file: