3.3. Control Classes

Core control classes are defined in the package org.apache.click.control. This package includes controls for the essential HTML elements.

Extended control classes are provided in the Click Extras package org.apache.click.extras.control. Click Extras classes can contain dependencies to 3rd party frameworks.

A subset of these control classes are depicted in the figure below.

Package Class Diagram

Figure 3.3. Package Class Diagram


The key control classes include:

The control classes are designed to support subclassing for customized behaviour. All control fields have protected visibility and have public accessor methods.

You can also aggregate controls to build more complex controls. For example the CreditCardField uses a Select control to render the different credit card types.