iBookDesign Interface

Visual LANSA Feature

iBookDesign Interface

The iBookDesign must be implemented by any reusable part that is to be used as a Design for a Book control (#Prim_Book).  The interface contains a series of methods through which the Book 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_Book 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_Book.iBookDesign *ListFields #ListFields)

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