Creating a Representation
On the component side, all these incoming requests are processed by the representation model interpreter into one transaction.
Note: When the component is distributed, only one remote call is issued by the server for each representation to be created or updated. |
1. First, a default representation is created as an instance of the type IlsRepresentation.
2. The request for the creation of the root representation causes the constructor registered with the class TreeR to be executed. A reference to the representation and a reference to the instance of the representation object model (IlsRpObjModel) related to the root representation are passed as its parameters. The function setLabel associated with the attribute label is then executed on this new TreeR object.
3. Similarly, the TreeItemR constructor is called to create each item and subItem representation. The request for the assignment of the reference attributes ownerTree or ownerItem, as appropriate, is executed through a call to the corresponding TreeItemR::setOwner function, which passes a pointer to the owner representation object as its parameter. Next, the label is set by the TreeItemR::setLabel.
Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.