Modifying a dialog
The contents of dialogs can be customized extensively. These panels are made up of user interface elements known as controls and managed composites.
Procedure
- Determine the ID of the user interface elements you want to change.
- Create new extension definitions for the UI elements you
want to
add in your plugin.xml file for the plug-in you are using to store
your customizations.
Here is an example that adds a new warning label to the logon dialog.
The
label says: "The IBM Sales Center may only be used for management
approved
activities". The following plugin.xml is in a new plug-in called "extensions":
<?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.0"?> <plugin> <extension point="com.ibm.commerce.telesales.configurator"> <configurator path="config"/> </extension> <extension point="com.ibm.commerce.telesales.widgets.controls"> <control id="logonDialogWarningLabel" type="label" text="The IBM Sales Center may only be used for management approved activities." foreground="red"/> </extension> <extension point="com.ibm.commerce.telesales.widgets.compositeDefinitions"> <gridCompositeDefinition id="logonInputAreaCompositeDefinition.default" referenceId="com.ibm.commerce.telesales.ui.impl.logonInputAreaCompositeDefinition.default"> <row> <control controlId="logonDialogWarningLabel" dataId="com.ibm.commerce.telesales.ui.impl.defaultGridData"/> </row> </gridCompositeDefinition> </extension> </plugin>
- Use the system configurator
extension point to use the new UI
elements rather than the default IBM Sales Center dialog UI elements.
For
example:
com.ibm.commerce.telesales.ui.impl.logonInputAreaCompositeDefinition.default=extensions.logonInputAreaCompositeDefinition.default