VCF::DefaultColumnModel Class Reference
Class DefaultColumnModel documentation. More...
#include <vcf/ApplicationKit/DefaultColumnModel.h>
Inheritance diagram for VCF::DefaultColumnModel:

Public Member Functions | |
| DefaultColumnModel () | |
| virtual | ~DefaultColumnModel () |
| void | init () |
| This is going to be removed from the bext release. | |
| 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 | |
| virtual void | removeListModelHandler (EventHandler *handler) |
| virtual void | addListModelHandler (EventHandler *handler) |
| virtual void | addContentsChangedHandler (EventHandler *handler) |
| adds a new handler that is notified whenever the contents of the model change. | |
| virtual void | removeContentsChangedHandler (EventHandler *handler) |
| removes a handler that was interested in changes to the model. | |
| virtual void | addItemAddedHandler (EventHandler *handler) |
| adds a new handler that is notified whenever an item is added. | |
| virtual void | removeItemAddedHandler (EventHandler *handler) |
| removes a handler that was interested in item additions to the model. | |
| virtual void | addItemDeletedHandler (EventHandler *handler) |
| adds a new handler that is notified whenever an item is removed. | |
| virtual void | removeItemDeletedHandler (EventHandler *handler) |
| removes a handler that was interested in item deletions to the model. | |
| virtual void | deleteItem (ColumnItem *item) |
| deletes the item from the model's collection of items. | |
| virtual void | deleteItem (const uint32 &index) |
| deletes the item from the model's collection of items. | |
| virtual void | insertItem (const uint32 &index, ColumnItem *item) |
| Inserts an item into the model's collection of items. | |
| virtual void | addItem (ColumnItem *item) |
| Adds an item into the model's collection of items. | |
| virtual ColumnItem * | getItemFromIndex (const uint32 &index) |
| Returns the item with the specified index in the model's collection. | |
| virtual Enumerator< ColumnItem * > * | getItems () |
| Returns an Enumerator of all the items in the model's collection. | |
| virtual uint32 | getCount () |
| returns the number of the items in the model | |
| virtual void | saveToStream (OutputStream *stream) |
| Write the object to the specified output stream. | |
| virtual void | loadFromStream (InputStream *stream) |
| Read the object from the specified input stream. | |
Public Attributes | |
| VCF::Delegate | ContentsChanged |
| ColumnModel Handlers. | |
| VCF::Delegate | ItemAdded |
| VCF::Delegate | ItemDeleted |
| VCF::Delegate | ModelValidate |
| VCF::Delegate | ModelEmptied |
Protected Attributes | |
| std::vector< ColumnItem * > | columnItems_ |
| EnumeratorContainer< std::vector< ColumnItem * >, ColumnItem * > | columnContainer_ |
Detailed Description
Class DefaultColumnModel documentation.
Constructor & Destructor Documentation
|
|
|
|
|
|
Member Function Documentation
|
|
adds a new handler that is notified whenever the contents of the model change. This can happen anytime an item is added or removed.
Implements VCF::ColumnModel. |
|
|
Adds an item into the model's collection of items. Causes a notification to be sent to all listeners of the models ItemAdded events and the model's ContentsChanged event.
Implements VCF::ColumnModel. |
|
|
adds a new handler that is notified whenever an item is added.
Implements VCF::ColumnModel. |
|
|
adds a new handler that is notified whenever an item is removed.
Implements VCF::ColumnModel. |
|
|
|
|
|
Adds a model listener to the model.
Implements VCF::Model. |
|
|
Adds a validation listener to the model.
Implements VCF::Model. |
|
|
deletes the item from the model's collection of items. Causes a notification to be sent to all listeners of the models ItemDeleted events and the model's ContentsChanged event.
Implements VCF::ColumnModel. |
|
|
deletes the item from the model's collection of items. Causes a notification to be sent to all listeners of the models ItemDeleted events and the model's ContentsChanged event.
Implements VCF::ColumnModel. |
|
|
clears out the model's data
Implements VCF::Model. |
|
|
returns the number of the items in the model
Implements VCF::ColumnModel. |
|
|
Returns the item with the specified index in the model's collection.
Implements VCF::ColumnModel. |
|
|
Returns an Enumerator of all the items in the model's collection. For example: ColumnModel* model = ...
Enumerator<ColumnItem*>* items = model->getItems();
while ( true == items->hasMoreElements() ) {
ColumnItem* item = items->nextElemnt();
do something ...
}
Implements VCF::ColumnModel. |
|
|
This is going to be removed from the bext release.
Reimplemented from VCF::Object. |
|
||||||||||||
|
Inserts an item into the model's collection of items. Causes a notification to be sent to all listeners of the models ItemAdded events and the model's ContentsChanged event.
Implements VCF::ColumnModel. |
|
|
Read the object from the specified input stream.
Implements VCF::Persistable. |
|
|
removes a handler that was interested in changes to the model.
Implements VCF::ColumnModel. |
|
|
removes a handler that was interested in item additions to the model.
Implements VCF::ColumnModel. |
|
|
removes a handler that was interested in item deletions to the model.
Implements VCF::ColumnModel. |
|
|
|
|
|
removes a model listener from the model
Implements VCF::Model. |
|
|
removes a validation listener from the model
Implements VCF::Model. |
|
|
Write the object to the specified output stream.
Implements VCF::Persistable. |
|
|
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. |
Member Data Documentation
|
|
|
|
|
|
|
|
ColumnModel Handlers.
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from VCF::Model. |
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/DefaultColumnModel.h
