VCF::ColumnModel Class Reference
The ColumnModel is a model that represent's 0 or more ColumnItems. More...
#include <vcf/ApplicationKit/ColumnModel.h>
Inheritance diagram for VCF::ColumnModel:

Public Member Functions | |
| virtual | ~ColumnModel () |
| virtual void | addContentsChangedHandler (EventHandler *handler)=0 |
| adds a new handler that is notified whenever the contents of the model change. | |
| virtual void | removeContentsChangedHandler (EventHandler *handler)=0 |
| removes a handler that was interested in changes to the model. | |
| virtual void | addItemAddedHandler (EventHandler *handler)=0 |
| adds a new handler that is notified whenever an item is added. | |
| virtual void | removeItemAddedHandler (EventHandler *handler)=0 |
| removes a handler that was interested in item additions to the model. | |
| virtual void | addItemDeletedHandler (EventHandler *handler)=0 |
| adds a new handler that is notified whenever an item is removed. | |
| virtual void | removeItemDeletedHandler (EventHandler *handler)=0 |
| removes a handler that was interested in item deletions to the model. | |
| virtual void | deleteItem (ColumnItem *item)=0 |
| deletes the item from the model's collection of items. | |
| virtual void | deleteItem (const uint32 &index)=0 |
| deletes the item from the model's collection of items. | |
| virtual void | insertItem (const uint32 &index, ColumnItem *item)=0 |
| Inserts an item into the model's collection of items. | |
| virtual void | addItem (ColumnItem *item)=0 |
| Adds an item into the model's collection of items. | |
| virtual ColumnItem * | getItemFromIndex (const uint32 &index)=0 |
| Returns the item with the specified index in the model's collection. | |
| virtual Enumerator< ColumnItem * > * | getItems ()=0 |
| Returns an Enumerator of all the items in the model's collection. | |
| virtual uint32 | getCount ()=0 |
| returns the number of the items in the model | |
Detailed Description
The ColumnModel is a model that represent's 0 or more ColumnItems.You can add, remove, and insert column items in the model. In addition you can get an item by index, or retrieve an Enumerator of all of the items the model currently has in it.
- See also:
- Model
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.
Implemented in VCF::DefaultColumnModel. |
|
|
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.
Implemented in VCF::DefaultColumnModel. |
|
|
adds a new handler that is notified whenever an item is added.
Implemented in VCF::DefaultColumnModel. |
|
|
adds a new handler that is notified whenever an item is removed.
Implemented in VCF::DefaultColumnModel. |
|
|
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.
Implemented in VCF::DefaultColumnModel. |
|
|
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.
Implemented in VCF::DefaultColumnModel. |
|
|
returns the number of the items in the model
Implemented in VCF::DefaultColumnModel. |
|
|
Returns the item with the specified index in the model's collection.
Implemented in VCF::DefaultColumnModel. |
|
|
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 ...
}
Implemented in VCF::DefaultColumnModel. |
|
||||||||||||
|
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.
Implemented in VCF::DefaultColumnModel. |
|
|
removes a handler that was interested in changes to the model.
Implemented in VCF::DefaultColumnModel. |
|
|
removes a handler that was interested in item additions to the model.
Implemented in VCF::DefaultColumnModel. |
|
|
removes a handler that was interested in item deletions to the model.
Implemented in VCF::DefaultColumnModel. |
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/ColumnModel.h
