You can subclass a JADE control class to provide a new control to meet your own requirements.
Defining your own controls provides:
Extended behavior of the
Specific behavior not provided by JADE system controls; for example, you can define an indicator used to represent an on/off situation, by subclassing the
If you reimplement an event method, you must include an inheritMethod instruction in your code so that the corresponding event method in the standard control class is invoked.
The steps that you perform to create your own controls are:
Subclass a JADE control class
Add properties to your new control class
Add methods to your new control class
For details, see the following sections.
Abstract control classes (for example, the
If you have mapping logic on subclassed controls, other processes such as the JADE Painter, Translator utility, or the loading of schemas may also execute that logic. The logic therefore may need to perform checks to determine if it is running in the user application environment, to ensure that exceptions are not generated in these other situations.