Configuring Siebel Open UI > Post-Upgrade Configuration Tasks > Overriding Plug-In Wrappers >
Overview of the Skeleton Structure of a Plug-in Wrapper
This topic describes the skeleton structure of a plug-in wrapper. In releases previous to Siebel Innovation Pack 2014, you may have customized Siebel Open UI to control behavior in physical renderers. This type of customization will now need to be moved into custom plugin wrappers. The skeleton structure in this topic provides a broad overview of what parts of a plug-in wrapper you will need to customize to achieve parity with your previous customizations. Figure 59 illustrates the basic structure of the code you use to override a plug-in wrapper. The example code, would be contained in an independent file in the following directory: INSTALL_DIR\eappweb\PUBLIC\language_code\build_number\scripts\siebel\custom
For information about deployment and manifest configuration, see Example of Customizing Siebel Open UI.
Figure 59. Skeleton Structure of the Plug-in Wrapper
|
Explanation of Callouts
- Definition of the Custom Plug-In Wrapper. Defines a custom wrapper by following the same ideology as presentation models and physical renderers. It lists the file of the wrapper and lists the dependencies. This will act as a module identifier to the RequireJS plug-in that Siebel Open UI uses to manage all client side modules.
NOTE: Controls that use 3rd party files list the dependencies here. They must be moved out of the renderer that listed this external dependency.
- Constructor. Does the required changes and calls the superclass. The choice of class from which to extend is decided in this section. It can be a new plug-in wrapper, or subset deviation from an existing plug-in wrapper.
- Lifecycle Methods. Specifies the methods that have been overridden. There is no need to override methods that have not been customized, because the superclass method will be called in instead. Here are the methods that are overridden in this example:
- ShowUI. Override this method to modify display level changes to the control. You can create new DOM or modify an existing DOM that is created by the superclass.
- BindEvents. Override this method to customize event handlers for the control. You can create new handlers in addition to those being added by the superclass or create an entirely different set by not calling the BindEvents in the superclass.
- SetValue. Override this method to affect any value changes to the control. Decorate the exiting value display mechanism or change it completely by avoiding the call to the superclass.
- SetState. Override this method to affect any state changes to the control. Control the behavior when changes to the state; such as editability, focus, and others; are requested. One or more states can be affected by controlling calls to the superclass.
- Private Methods. Use private methods like in presentation models and physical renderers to handle custom functionality, for example: Event Handler definitions.
- Declaration of Custom Plug-in Wrappers. This is the section that declares to the framework that a custom plug-in wrapper has been deployed. It describes the conditions under which the plug-in wrapper needs to be used. Its parameters are:
|