ITPRootElement

Descendant of ITPElement that represents the root of the tree. It allows for the registration of JSON info structures, which will be expanded as an object tree upon initialization.

constructor

ITPRootElement(pInfo)

Simple initialization of local variables.

public methods

registerElement(pInfo)

Registers an info structure, which will be expanded to an ITPElement descendant during construction of the tree.

registerErrorElement(pElement)

Registers elements that report errors. Only the first element is stored. This is used to scroll the first error into view after initializing the page.

overrides

initialise(pCallback)

Constructs an object for each registered info structure, using the global variable itpelementfactory. Associates parents and children, thus implicitly constructing the tree. Initializes all objects, passing a callback function that checks whether all constructed object have been initialized. As soon as this is the case, calls synchronize to enforce message synchronization and calls back through its own callback function.

synchronize()

Calls synchronize on each of its elements.

getDescendant(pId, pRequiredType)

Uses the map of registered elements as an index to implement a more optimal search for the descendant.

processMessage(pMessage)

Stops the broadcasting of any messages as long as initialization has not yet been completed.

other methods

-