VCF::TableItemEditor Class Reference
The TableItemEditor class is used to provide editing capabilities for individual cell items in a TableControl. More...
#include <vcf/ApplicationKit/TableItemEditor.h>
Inheritance diagram for VCF::TableItemEditor:

Public Member Functions | |
| TableItemEditor () | |
| virtual | ~TableItemEditor () |
| virtual TableCellItem * | getItemToEdit ()=0 |
| Returns an instance to the item current associated with this editor. | |
| virtual void | updateItem ()=0 |
| Updates the item to change to whatever new value has been set in the editor. | |
| virtual Control * | getEditingControl ()=0 |
| Returns a control instance that belongs to this editor. | |
Public Attributes | |
| VCF::Delegate | CellItemChanged |
| VCF::Delegate | CellItemValidateChange |
Detailed Description
The TableItemEditor class is used to provide editing capabilities for individual cell items in a TableControl.When the TableControl detects that an event has occurred to start an edit, it calls the respective TableCellItem's createItemEditor() method. This will create a new instance of a TableItemEditor, as appropriate for that cell. A simple implementation of this interface can be found in the BasicTableItemEditor class.
The editor allows you to retrieve the item that is currently being edited. It also allows access to the control that is used to edit the item. This control is managed by the underlying TableControl, all you need to do is create the control instance once. One approach might be to create the control in your custom class's constructor. Another approach, which the BasicTableItemEditor takes, is to set a member variable to NULL in the constructor, and then in the implementation of getEditingControl, check the member variable, if it's NULL, then create the control at that point and set the member variable, and then return the member variable.
Constructor & Destructor Documentation
|
|
|
|
|
|
Member Function Documentation
|
|
Returns a control instance that belongs to this editor. This control instance is managed by the table control, and it has the same life time as the editor that created it. Implemented in VCF::BasicTableItemEditor. |
|
|
Returns an instance to the item current associated with this editor.
Implemented in VCF::BasicTableItemEditor. |
|
|
Updates the item to change to whatever new value has been set in the editor.
Implemented in VCF::BasicTableItemEditor. |
Member Data Documentation
|
|
|
|
|
|
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/TableItemEditor.h
