Develop > Presentation layer > Customize IBM Sales Center
Dialogs
Dialogs are a common user interface element in the IBM Sales Center. Dialogs are used when the user chooses to perform an action and needs to provide additional information. For example, the interface that a customer uses to log on, or search for an order, are dialogs.
The contents of dialogs are user interface elements known as controls and managed composite controls.
Customization of these dialogs involves using the Eclipse product extension point architecture. The following sample demonstrates how to extend the Logon dialog. This demonstrates how you can replace an existing Sales Center dialog class with a new dialog class. Normally this is not necessary because you can use controls and managed composite controls extensions and the system configurator to make changes to existing dialogs without replacing the dialog implementation. In our example, the extension is defined 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.ui.dialogs"> <!-- Logon Dialog --> <dialog id="extensions.logonDialog"> </dialog> </extension> </plugin>
Below is the Java implementation class:
ExtendedLogonDialog.java package extensions; import com.ibm.commerce.telesales.ui.impl.dialogs.LogonDialog; public class ExtendedLogonDialog extends LogonDialog { /** * Write out to the console to indicate that * that the extended dialog is being used. */ public ExtendedLogonDialog() { System.out.println("ExtendedLogonDialog"); } }
The system configurator extension point is used to indicate that the new dialog will be used:
com.ibm.commerce.telesales.logonDialog=extensions.logonDialog
Related concepts
Overview of customizing IBM Sales Center
Managed composites and widget managers
Related tasks
Move a user interface element between dialogs or editor pages
Related reference
IBM Sales Center samples: Actions, dialogs, editors and requests