soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
TvAdatperImpl< BaseClass > Class Template Reference

树形适配器实现模板类 More...

#include <SAdapterBase.h>

Public Member Functions

void notifyBranchChanged (HSTREEITEM hBranch)
 通知所有观察者分支已更改
 
void notifyBranchInvalidated (HSTREEITEM hBranch, bool bInvalidParents=true, bool bInvalidChildren=true)
 通知所有观察者分支已失效
 
void notifyBranchExpandChanged (HSTREEITEM hBranch, BOOL bExpandedOld, BOOL bExpandedNew)
 通知所有观察者分支展开状态已更改
 
void notifyItemBeforeRemove (HSTREEITEM hItem)
 通知所有观察者项将被移除
 
void registerDataSetObserver (ITvDataSetObserver *observer) OVERRIDE
 注册一个数据集观察者
 
void unregisterDataSetObserver (ITvDataSetObserver *observer) OVERRIDE
 注销一个数据集观察者
 

Protected Attributes

STvObserverMgr m_obzMgr
 观察者管理器
 

Detailed Description

template<class BaseClass>
class TvAdatperImpl< BaseClass >

树形适配器实现模板类

Template Parameters
BaseClass基类类型

Definition at line 554 of file SAdapterBase.h.

Member Function Documentation

◆ notifyBranchChanged()

template<class BaseClass>
void TvAdatperImpl< BaseClass >::notifyBranchChanged ( HSTREEITEM hBranch)
inline

通知所有观察者分支已更改

Parameters
hBranch分支句柄

Definition at line 560 of file SAdapterBase.h.

◆ notifyBranchExpandChanged()

template<class BaseClass>
void TvAdatperImpl< BaseClass >::notifyBranchExpandChanged ( HSTREEITEM hBranch,
BOOL bExpandedOld,
BOOL bExpandedNew )
inline

通知所有观察者分支展开状态已更改

Parameters
hBranch分支句柄
bExpandedOld旧展开状态
bExpandedNew新展开状态

Definition at line 582 of file SAdapterBase.h.

◆ notifyBranchInvalidated()

template<class BaseClass>
void TvAdatperImpl< BaseClass >::notifyBranchInvalidated ( HSTREEITEM hBranch,
bool bInvalidParents = true,
bool bInvalidChildren = true )
inline

通知所有观察者分支已失效

Parameters
hBranch分支句柄
bInvalidParents父节点是否失效
bInvalidChildren子节点是否失效

Definition at line 571 of file SAdapterBase.h.

◆ notifyItemBeforeRemove()

template<class BaseClass>
void TvAdatperImpl< BaseClass >::notifyItemBeforeRemove ( HSTREEITEM hItem)
inline

通知所有观察者项将被移除

Parameters
hItem项句柄

Definition at line 591 of file SAdapterBase.h.

◆ registerDataSetObserver()

template<class BaseClass>
void TvAdatperImpl< BaseClass >::registerDataSetObserver ( ITvDataSetObserver * observer)
inline

注册一个数据集观察者

Parameters
observer观察者对象指针

Definition at line 600 of file SAdapterBase.h.

◆ unregisterDataSetObserver()

template<class BaseClass>
void TvAdatperImpl< BaseClass >::unregisterDataSetObserver ( ITvDataSetObserver * observer)
inline

注销一个数据集观察者

Parameters
observer观察者对象指针

Definition at line 609 of file SAdapterBase.h.

Member Data Documentation

◆ m_obzMgr

template<class BaseClass>
STvObserverMgr TvAdatperImpl< BaseClass >::m_obzMgr
protected

观察者管理器

Definition at line 615 of file SAdapterBase.h.


The documentation for this class was generated from the following file: