WizardForm

The WizardForm acts as a page to be contained within the WizardControl. It provides an API to create the appropriate display, obtain the chosen value selected, and set the value in the return message. The code for the WizardForm class is shown in Figure 13-8.

The WizardForm class has the abstract modifier assigned in its declaration, because any Curl class that has at least one method declared abstract requires this. It has two class variables, both of which are declared as protected, because they will be accessed by descendent code. The protected primitive means that access is provided to code in the same package, as well as to sub-classes.

The {get-form} method is called from the WizardControl and returns the page layout as a VBox ...

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.