| Object Controls |
|
| Prior Next | |||||
|
PxPlus supports the ability to customize controls through the use of objects. Two types of capabilities are available; Object Defined Controls ( ODC ) and Object Enhanced Controls ( OEC ). In general, whenever an Object Control is referenced, the system will utilize the properties and/or methods within the associated object to handle the request. To the application logic, the control appears no different than any other control except that it may have additional properties and methods or different functionality.
By replacing or enhancing controls with your own objects, allows the application developer to avoid making many changes to support other environments and control types. In many cases, existing applications should simply run using these new Object Controls.
ODC controls have the additional advantage that they fully replace control and as such can be tailored to interface to whatever type of output device you may want to work with (HTML, SWF, Text mode terminals,...). This allows the application designer to separate much of the business rules from the presentation layer.
| |||||
|
ODC Server |
To simplify the deployment of ODCs, PxPlus contains built-in logic that allows you to create a control creation service object called an ODC server . If an ODC Server object is defined to the system, whenever the system encounters a directive to create a standard control such as LIST_BOX or BUTTON, the creation request will be passed first to the ODC Server object which can create an ODC in lieu of the standard control. This allows for the automatic replacement of standard of controls with ODCs with minimum application changes thereby allowing easier migration to different operating environments.
In addition to control creation, the system has the facility to allow the OC Server to emulate many of the Graphical Interface directives, functions, and variables. For example if a method MSGBOX exists within the ODC Server object, the system will invoke it to process all MSGBOX directives. See the section of ODC Server for more details.
| ||||
| Prior Next |