Class: Watcher
Implements
Table of contents
Constructors
Properties
Accessors
Methods
- start
- stop
- disable
- update
- __onAttrChange
- __onChildEvent
- __pushChild
- __loopChildren
- __onRquestData
- __listenEvents
- __removeListenEvents
- destroy
Constructors
constructor
• new Watcher(target
, userConfig?
): Watcher
Parameters
Name | Type |
---|---|
target | ILeaf |
userConfig? | IWatcherConfig |
Returns
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:35
Properties
target
• target: ILeaf
Implementation of
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:7
totalTimes
• totalTimes: number
= 0
Implementation of
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:9
disabled
• disabled: boolean
Implementation of
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:11
running
• running: boolean
Implementation of
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:12
changed
• changed: boolean
Implementation of
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:13
hasVisible
• hasVisible: boolean
Implementation of
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:15
hasAdd
• hasAdd: boolean
Implementation of
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:16
hasRemove
• hasRemove: boolean
Implementation of
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:17
config
• config: IWatcherConfig
= {}
Implementation of
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:20
__eventIds
• Protected
__eventIds: IEventListenerId
[]
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:32
__updatedList
• Protected
__updatedList: ILeafList
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:33
Accessors
childrenChanged
• get
childrenChanged(): boolean
Returns
boolean
Implementation of
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:18
updatedList
• get
updatedList(): ILeafList
Returns
Implementation of
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:22
Methods
start
▸ start(): void
Returns
void
Implementation of
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:41
stop
▸ stop(): void
Returns
void
Implementation of
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:46
disable
▸ disable(): void
Returns
void
Implementation of
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:50
update
▸ update(): void
Returns
void
Implementation of
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:56
__onAttrChange
▸ __onAttrChange(event
): void
Parameters
Name | Type |
---|---|
event | PropertyEvent |
Returns
void
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:61
__onChildEvent
▸ __onChildEvent(event
): void
Parameters
Name | Type |
---|---|
event | ChildEvent |
Returns
void
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:66
__pushChild
▸ __pushChild(child
): void
Parameters
Name | Type |
---|---|
child | ILeaf |
Returns
void
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:77
__loopChildren
▸ __loopChildren(parent
): void
Parameters
Name | Type |
---|---|
parent | ILeaf |
Returns
void
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:82
__onRquestData
▸ __onRquestData(): void
Returns
void
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:87
__listenEvents
▸ __listenEvents(): void
Returns
void
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:97
__removeListenEvents
▸ __removeListenEvents(): void
Returns
void
Defined in
leafer/packages/partner/watcher/src/Watcher.ts:106
destroy
▸ destroy(): void
Returns
void