列表适配器基类 More...
#include <SAdapterBase.h>
Public Member Functions | |
| SAdapterBase () | |
| 构造函数 | |
| ~SAdapterBase () | |
| 析构函数 | |
Public Member Functions inherited from TObjRefImpl< LvAdatperImpl< ILvAdapter > > | |
| TObjRefImpl () | |
| Constructor that initializes the reference count to 1. | |
| virtual | ~TObjRefImpl () |
| Virtual destructor. | |
| long | AddRef () override |
| Increments the reference count. | |
| long | Release () override |
| Decrements the reference count and deletes the object if the count reaches zero. | |
| void | OnFinalRelease () override |
| Deletes the object. | |
Public Member Functions inherited from LvAdatperImpl< ILvAdapter > | |
| void | notifyDataSetChanged () |
| 通知所有观察者数据集已更改 | |
| void | notifyDataSetInvalidated () |
| 通知所有观察者数据集已失效 | |
| void | notifyItemDataChanged (int iItem) |
| 通知所有观察者指定项的数据已更改 | |
| void | registerDataSetObserver (ILvDataSetObserver *observer) OVERRIDE |
| 注册一个数据集观察者 | |
| void | unregisterDataSetObserver (ILvDataSetObserver *observer) OVERRIDE |
| 注销一个数据集观察者 | |
| void | getView (int position, IWindow *pItem, IXmlNode *pXmlTemplate) OVERRIDE |
| 获取视图 | |
| void | getView (int position, SItemPanel *pItem, SXmlNode xmlTemplate) |
| 获取视图(模板函数) | |
| int | getItemViewType (int position) |
| 获取项视图类型 | |
| int | getItemViewType (int position, DWORD dwState) OVERRIDE |
| 获取项视图类型(重载) | |
| int | getViewTypeCount () OVERRIDE |
| 获取视图类型数量 | |
| BOOL | isEmpty () OVERRIDE |
| 检查数据集是否为空 | |
| int | getCount () PURE |
| 获取数据集项数量 | |
| SStringW | getItemDesc (int position) |
| 获取项描述 | |
| void | getItemDesc (int position, IStringW *pDesc) OVERRIDE |
| 获取项描述(重载) | |
| void | InitByTemplate (SXmlNode xmlTemplate) |
| 通过模板初始化适配器 | |
| void | InitByTemplate (IXmlNode *pXmlTemplate) OVERRIDE |
| 通过模板初始化适配器(重载) | |
| void | getViewDesiredSize (SIZE *ret, int position, SItemPanel *pItem, int wid, int hei) |
| 获取视图所需大小 | |
| void | getViewDesiredSize (SIZE *ret, int position, IWindow *pItem, int wid, int hei) OVERRIDE |
| 获取视图所需大小(重载) | |
| HRESULT | QueryInterface (REFGUID id, IObjRef **ppObj) OVERRIDE |
| 查询接口 | |
Additional Inherited Members | |
Protected Attributes inherited from TObjRefImpl< LvAdatperImpl< ILvAdapter > > | |
| LONG | m_cRef |
| Reference count. | |
Protected Attributes inherited from LvAdatperImpl< ILvAdapter > | |
| SLvObserverMgr | m_obzMgr |
| 观察者管理器 | |
列表适配器基类
Definition at line 316 of file SAdapterBase.h.
|
inline |
构造函数
Definition at line 321 of file SAdapterBase.h.
|
inline |
析构函数
Definition at line 328 of file SAdapterBase.h.