DOMSelectorView

From Virtual World Web Wiki
Jump to: navigation, search

A view that "watches" a DOM tree for nodes matching a CSS Selector. The view maintains a list of matching nodes. The view has several Modes, suitable for different performance requirements.

Remarks [edit]

Properties

DOMObject[] Matches {get;}
Retrieves the list of matching nodes.
DOMSelectorViewMode Mode {get;}
Specifies the monitoring mode for the view. See DOMSelectorViewMode for more details.
DOMObject Root {get;}
The root DOMObject on which this view is listening.
string Selector {get;}
The original CSS Selector passed to the constructor.

Constructors

DOMSelectorView(DOMObject root, string selector, DOMSelectorViewMode mode)
Constructs a new DOMSelectorView

Methods

void Rescan()
Re-scans the DOM for matching nodes