soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
STvObserverMgr Class Reference

管理树形数据集观察者的类 More...

#include <SAdapterBase.h>

Public Member Functions

 STvObserverMgr ()
 构造函数
 
 ~STvObserverMgr ()
 析构函数,释放所有观察者
 
void registerObserver (ITvDataSetObserver *observer)
 注册一个观察者
 
void unregisterObserver (ITvDataSetObserver *observer)
 注销一个观察者
 
void notifyChanged (HSTREEITEM hBranch)
 通知所有观察者分支已更改
 
void notifyInvalidated (HSTREEITEM hBranch, bool bInvalidParents, bool bInvalidChildren)
 通知所有观察者分支已失效
 
void notifyExpandChanged (HSTREEITEM hBranch, BOOL bExpandedOld, BOOL bExpandedNew)
 通知所有观察者分支展开状态已更改
 
void notifyItemBeforeRemove (HSTREEITEM hItem)
 通知所有观察者项将被移除
 

Protected Attributes

SList< ITvDataSetObserver * > m_lstObserver
 观察者列表
 

Detailed Description

管理树形数据集观察者的类

Definition at line 434 of file SAdapterBase.h.

Constructor & Destructor Documentation

◆ STvObserverMgr()

STvObserverMgr::STvObserverMgr ( )
inline

构造函数

Definition at line 439 of file SAdapterBase.h.

◆ ~STvObserverMgr()

STvObserverMgr::~STvObserverMgr ( )
inline

析构函数,释放所有观察者

Definition at line 446 of file SAdapterBase.h.

Member Function Documentation

◆ notifyChanged()

void STvObserverMgr::notifyChanged ( HSTREEITEM hBranch)
inline

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

Parameters
hBranch分支句柄

Definition at line 488 of file SAdapterBase.h.

◆ notifyExpandChanged()

void STvObserverMgr::notifyExpandChanged ( HSTREEITEM hBranch,
BOOL bExpandedOld,
BOOL bExpandedNew )
inline

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

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

Definition at line 520 of file SAdapterBase.h.

◆ notifyInvalidated()

void STvObserverMgr::notifyInvalidated ( HSTREEITEM hBranch,
bool bInvalidParents,
bool bInvalidChildren )
inline

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

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

Definition at line 504 of file SAdapterBase.h.

◆ notifyItemBeforeRemove()

void STvObserverMgr::notifyItemBeforeRemove ( HSTREEITEM hItem)
inline

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

Parameters
hItem项句柄

Definition at line 534 of file SAdapterBase.h.

◆ registerObserver()

void STvObserverMgr::registerObserver ( ITvDataSetObserver * observer)
inline

注册一个观察者

Parameters
observer观察者对象指针

Definition at line 461 of file SAdapterBase.h.

◆ unregisterObserver()

void STvObserverMgr::unregisterObserver ( ITvDataSetObserver * observer)
inline

注销一个观察者

Parameters
observer观察者对象指针

Definition at line 474 of file SAdapterBase.h.

Member Data Documentation

◆ m_lstObserver

SList<ITvDataSetObserver *> STvObserverMgr::m_lstObserver
protected

观察者列表

Definition at line 545 of file SAdapterBase.h.


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