Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::ListItem Class Reference

#include <vcf/ApplicationKit/ListItem.h>

Inheritance diagram for VCF::ListItem:

VCF::Item VCF::UIComponent VCF::Component VCF::ObjectWithCallbacks VCF::Object List of all members.

Public Member Functions

 ListItem ()
virtual ~ListItem ()
ListModelgetListModel ()
ListControllergetController ()
String getCaption () const
void setCaption (const String &caption)
virtual uint32 getIndex () const
 Returns the index of the item within it's model.
virtual void setIndex (const uint32 &index)
ListSubItemaddSubItem (const String &caption, void *data)
void addSubItem (ListSubItem *subItem)
void removeSubItem (const uint32 &index)
bool getSubItems (std::vector< ListSubItem * > &subItems)
ListSubItemgetSubItem (const uint32 &index)
uint32 getSubItemCount ()
virtual void handleEvent (Event *e)
 generic handler method for events.

Protected Attributes

uint32 index_
bool internalChange_

Constructor & Destructor Documentation

VCF::ListItem::ListItem  )  [inline]
 

virtual VCF::ListItem::~ListItem  )  [inline, virtual]
 


Member Function Documentation

void VCF::ListItem::addSubItem ListSubItem subItem  ) 
 

ListSubItem* VCF::ListItem::addSubItem const String caption,
void *  data
 

String VCF::ListItem::getCaption  )  const
 

ListController* VCF::ListItem::getController  )  [inline]
 

virtual uint32 VCF::ListItem::getIndex  )  const [inline, virtual]
 

Returns the index of the item within it's model.

ListModel* VCF::ListItem::getListModel  )  [inline]
 

ListSubItem* VCF::ListItem::getSubItem const uint32 index  ) 
 

uint32 VCF::ListItem::getSubItemCount  ) 
 

bool VCF::ListItem::getSubItems std::vector< ListSubItem * > &  subItems  ) 
 

virtual void VCF::ListItem::handleEvent Event e  )  [virtual]
 

generic handler method for events.

All UI events are sent here and then dispatched accordingly to a more specific event handler. If an Application class is present, then it is given a chance to "see" the event first before delegating it to the Component.

All events are dispatched by their type so it is important to correctly identify the event objects type if you would like it to be dispatched correctly. The method will call the appropriate component method, like afterCreate(), beforeDestroy(), etc.

Parameters:
Event based on the value returned by Event::getType(),

Reimplemented from VCF::UIComponent.

void VCF::ListItem::removeSubItem const uint32 index  ) 
 

void VCF::ListItem::setCaption const String caption  ) 
 

virtual void VCF::ListItem::setIndex const uint32 index  )  [inline, virtual]
 


Member Data Documentation

uint32 VCF::ListItem::index_ [protected]
 

bool VCF::ListItem::internalChange_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information