VMSSheetManager

In order to make an application window or sheet visible within the application frame, we have to add code to the VMSSheetManager. Figure 12-5 shows the additional code required for this class to handle the Employee List window.

You can see from the additional code listed for the {open-sheet} method in Figure 12-5 that enabling the VMSSheetManager to handle another window is as simple as creating a new case clause in the {switch} expression. We have added code that executes when the "employee" String is passed across as the method argument, which uses the {create-layout} method on the EmployeeSheet class to first create the visual elements on the window and then call the {add-sheet} method to present a new sheet to the user.

Get Enterprise Curl now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.