O'Reilly logo

Enterprise Curl by Paul Sheehan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required