EmployeeTabPage

We first need to create a descendent of the COM.ENT-CURL.TAB.TabPage class that will be used to display employee details. This will be called EmployeeTabPage, and Figure 20-2 lists the code required.

As you can see, EmployeeTabPage inherits from TabPage and then uses the {initialize} method to direct the specific visual layout properties of the tab page. This method is called by the ancestor constructor event, and provides us with a hook for easily defining the controls that will appear and any additional processing or event requirements.

The {initialize} method makes use of the ancestor gui-factory reference to instantiate particular graphic controls, and stores the reference in class member fields. In earlier chapters, we saw ...

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.