| Package | weavejs.core |
| Class | public class LinkableWatcher |
| Inheritance | LinkableWatcher Object |
| Implements | ILinkableObject, IDisposableObject |
| Subclasses | LinkableDynamicObject |
| Property | Defined By | ||
|---|---|---|---|
| foundPlaceholder : Boolean [read-only]
Checks if the target is currently a placeholder for an instance of an async class. | LinkableWatcher | ||
| root : ILinkableObject
This is the root object to which targetPath is relative. | LinkableWatcher | ||
| target : ILinkableObject
This is the linkable object currently being watched. | LinkableWatcher | ||
| targetPath : Array
This is the path that is currently being watched for linkable object targets. | LinkableWatcher | ||
| Property | Defined By | ||
|---|---|---|---|
| _targetPath : Array | LinkableWatcher | ||
| _typeRestriction : Class | LinkableWatcher | ||
| Method | Defined By | ||
|---|---|---|---|
LinkableWatcher(typeRestriction:Class = null, immediateCallback:Function = null, groupedCallback:Function = null)
Instead of calling this constructor directly, consider using one of the global functions
newLinkableChild() or newDisposableChild() to make sure the watcher will get disposed automatically. | LinkableWatcher | ||
dispose():void | LinkableWatcher | ||
| Method | Defined By | ||
|---|---|---|---|
internalSetTarget(newTarget:ILinkableObject):void
This sets the new target to be watched without resetting targetPath. | LinkableWatcher | ||
| _targetPath | property |
protected var _targetPath:Array| _typeRestriction | property |
protected var _typeRestriction:Class| foundPlaceholder | property |
foundPlaceholder:Boolean [read-only] Checks if the target is currently a placeholder for an instance of an async class.
public function get foundPlaceholder():BooleanSee also
| root | property |
root:ILinkableObjectThis is the root object to which targetPath is relative.
public function get root():ILinkableObject public function set root(value:ILinkableObject):void| target | property |
target:ILinkableObjectThis is the linkable object currently being watched. Setting this will unset the targetPath.
public function get target():ILinkableObject public function set target(value:ILinkableObject):void| targetPath | property |
targetPath:ArrayThis is the path that is currently being watched for linkable object targets.
public function get targetPath():Array public function set targetPath(value:Array):void| LinkableWatcher | () | Constructor |
public function LinkableWatcher(typeRestriction:Class = null, immediateCallback:Function = null, groupedCallback:Function = null)Instead of calling this constructor directly, consider using one of the global functions newLinkableChild() or newDisposableChild() to make sure the watcher will get disposed automatically.
ParameterstypeRestriction:Class (default = null) — Optionally restricts which type of targets this watcher accepts.
| |
immediateCallback:Function (default = null) — A function to add as an immediate callback.
| |
groupedCallback:Function (default = null) — A function to add as a grouped callback.
|
See also
| dispose | () | method |
public function dispose():void| internalSetTarget | () | method |
protected function internalSetTarget(newTarget:ILinkableObject):voidThis sets the new target to be watched without resetting targetPath. Callbacks will be triggered immediately if the new target is different from the old one.
Parameters
newTarget:ILinkableObject |