VCF::AbstractModel Class Reference
The AbstractModel is a base class for creating your own custom model classes. More...
#include <vcf/ApplicationKit/AbstractModel.h>
Inheritance diagram for VCF::AbstractModel:

Public Member Functions | |
| virtual void | addModelValidationHandler (EventHandler *handler) |
| Adds a validation listener to the model. | |
| virtual void | removeModelValidationHandler (EventHandler *handler) |
| removes a validation listener from the model | |
| virtual void | addModelHandler (EventHandler *handler) |
| Adds a model listener to the model. | |
| virtual void | removeModelHandler (EventHandler *handler) |
| removes a model listener from the model | |
| virtual void | validate () |
| validate the model. | |
| virtual void | empty () |
| clears out the model's data | |
Detailed Description
The AbstractModel is a base class for creating your own custom model classes.It provides a basic implementation of some of the Model class's methods.
- Event Delegates for this class:
Member Function Documentation
|
|
Adds a model listener to the model.
Implements VCF::Model. |
|
|
Adds a validation listener to the model.
Implements VCF::Model. |
|
|
clears out the model's data
Implements VCF::Model. Reimplemented in VCF::DefaultListModel, VCF::DefaultTableModel, VCF::DefaultTextModel, VCF::DefaultTreeModel, and VCF::Document. |
|
|
removes a model listener from the model
Implements VCF::Model. |
|
|
removes a validation listener from the model
Implements VCF::Model. |
|
|
validate the model. The implementation for this can vary widely, or even be nonexistant for model's that do not require validation. The basic idea is to call all the listeners in the list , passing in a local variable to the onModelValidate() methods of the listener's. The variable is initialized to true, and if it is still true at the end of the listener iterations, then it is safe to apply the changes to the model, other wise the changes are removed. Implements VCF::Model. Reimplemented in VCF::DefaultTableModel. |
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/AbstractModel.h
