[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_DOM' (#lazutils)

TDOMNodeList.BuildList (deprecated)

Fills the node list using the node filter.

Declaration

Source position: laz2_dom.pas line 352

protected procedure TDOMNodeList.BuildList; virtual;

Description

BuildList is a virtual method used to get the TDOMNode instances in the node list. BuildList is called when the revision numbers for the node list and the node which owns the node list have different values. This ensures that the node list always reflects the current content in the DOM node hierarchy.

BuildList clears the internal TFPList instance where the DOM nodes are stored, and updates the internal revision number for the node list to match the value in the owner node. Child nodes for the owner node are visited, and the NodeFilter method is called to determine if the child node should be included in the node list. If the return value from NodeFilter indicates that recursion is allowed, the child nodes for each child node are also visited and examined.

Remark: BuildList is marked as deprecated in TDOMNode. Use NodeFilter instead.

See also

TDOMNodeList.NodeFilter

  

Determines if the node can be used in the DOM node list.

TDOMNode.FirstChild

  

Gets the first child node for the current node.

TDOMNode.ParentNode

  

DOM node that is the immediate ancestor of this node.

TFilterResult

  

Determines the Node types included in a DOM node list.


Version 3.2 Generated 2024-02-25 Home