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

TDOMNode_WithChildren

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Extends TDOMNode to allocate storage for child nodes.

Declaration

Source position: laz2_dom.pas line 316

type TDOMNode_WithChildren = class(TDOMNode)

protected

  FFirstChild: TDOMNode;

  FLastChild: TDOMNode;

  FChildNodes: TDOMNodeList;

  function GetFirstChild; override;

  

Gets the value for the FirstChild property.

  function GetLastChild; override;

  

Gets the value for the LastChild property.

  procedure CloneChildren();

  

Makes a copy of child nodes in the specified DOM node.

  procedure FreeChildren;

  

Frees all Child nodes for the DOM node.

  function GetTextContent; override;

  

Gets the value for the TextContent property.

  procedure SetTextContent(); override;

  

Sets the value for the TextContent property.

public

  destructor Destroy; override;

  

Destructor for the class instance.

  function InsertBefore(); override;

  

Inserts a new child node immediately before the reference child node.

  function ReplaceChild(); override;

  

Replaces a child DOM node with another DOM node.

  function DetachChild(); override;

  

Detached the specified DOM node from the sub-tree.

  function HasChildNodes; override;

  

Indicates if the current DOM node has child nodes.

  function GetChildCount; override;

  

Gets the number of child nodes for the DOM node instance.

  function FindNode(); override;

  

Finds a DOM node with the specified value in its NodeName property.

  procedure InternalAppend();

  

Performs actions needed to append the specified node to the ChildNodes.

end;

Inheritance

TDOMNode_WithChildren

  

Extends TDOMNode to allocate storage for child nodes.

|

TDOMNode

  

Implements the DOM Node interface.

|

TObject

Description

TDOMNode_WithChildren is a TDOMNode descendant which allocates storage for child nodes in the class instance. TDOMNode_WithChildren is an extension to the Node interface in the DOM specification, and is designed to save memory in a large DOM tree.

See also

TDOMNode

  

Implements the DOM Node interface.


Version 3.2 Generated 2024-02-25 Home