DhBaseContainer.onChildAdded

Overview | Methods | This Package | All Packages

DhBaseContainer.onChildAdded

Called by the framework after a child element is added to this container.

Syntax

protected void onChildAdded( DhElement eChild )

Parameters

eChild

A reference to the child element.

Remarks

Override this method in your derived class to be notified when a child element is added to the container. Note that this is valid only if the class can have children.  This method will be called when the user calls DhBaseContainer.add on this container or binds to children of this container that are already on the HTML page using DhBaseContainer.findElement, for example.

Do not add functions that will add elements to this class, such as addText or newLine, or the method will infinitely recurse. You can, however, add elements to other containers from your override of this method.