iTreeDesign Interface

Visual LANSA Feature

iTreeDesign Interface

The iTreeDesign must be implemented by any reusable part that is to be used as a Design for a Tree control (#Prim_Tree).  The interface contains a series of methods through which the Tree can communicate with the design instance to inform it of changes to its state e.g. Selection, Focus etc.

The source below shows the Begin_com for reusable part implementing the appropriate design for Prim_tree as well as the *Listfields feature which defines the fields to be received by the design when it is ADD_ENTRY is used to create the item.

Begin_Com Role(*EXTENDS #Prim_Panl3 *implements #Prim_Tree.iTreeDesign *ListFields #ListFields)

* Fields received as on Add_entry
Group_By Name(#ListFields) Fields(#Empno #Surname #Givename #Deptment #Section #Deptdesc #Secdesc)