#ifndef __CCTABLEVIEWCELL_H__
#define __CCTABLEVIEWCELL_H__
#include "base_nodes/CCNode.h"
#include "CCSorting.h"
NS_CC_EXT_BEGIN
/**
* Abstract(抽象类) class for SWTableView cell node
*/
class CCTableViewCell: public CCNode, public CCSortableObject
{
public:
CCTableViewCell() {}
/**
* The index used internally by SWTableView and its subclasses
*/
unsigned int getIdx(); //得到cell 的index
void setIdx(unsigned int uIdx); //设置cell 的index
/**
* Cleans up any resources linked to this cell and resets <code>idx</code> property.
*/
void reset();//删除cell数据
void setObjectID(unsigned int uIdx);
unsigned int getObjectID();
private:
unsigned int m_uIdx;
};
NS_CC_EXT_END
#endif /* __CCTABLEVIEWCELL_H__ */