Sign in Join
FPDoc Onlineexperiment

TDOMNodeList.BuildList procedure

Member of TDOMNodeListprotectedIn unit Laz2_DOM

Fills the node list using the node filter.

Declaration

pascal
procedure 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.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.