Develop > Presentation layer > Customize IBM Sales Center > Views


Create view content using Sales Center UI framework

Several default views are available for customization within the IBM Sales Center client. This section explains how to create view content using sales center UI framework.

Existing Sales Center views have been created by Eclipse and not using the UI framework provided by Sales Center. But when creating a new view, you can use the UI framework and create the contents of the view in the same way that it is done for editors.

To create the content of a newly created view:


Procedure

  1. Explicitly create widget input properties.

  2. Create a model object that to pass to the view.

  3. Create a managed composite for newly created view.

  4. Create a viewer to pass the managed composite.


Results

For example, for a new Catalog view,

public class CatalogView extends ViewPart {
         public void createPartControl(Composite parent) {

         //Explicitly create widget input properties
         WidgetManagerInputProperties widgetManagerInputProperties
= new 
         WidgetManagerInputProperties(); 
         //Create a model object to pass to view
         Catalog catalogTreeModel = new Catalog();          widgetManagerInputProperties.setData("catalog", catalogTreeModel); 
         //Create a managedcomposite for the newly created view
         ManagedComposite managedComposite_ = 
        
ManagedCompositeFactory.createManagedComposite((Composite)parent, "com.ibm.commerce.telesales.ui.impl.createCatalogViewManagedComposite",widgetManagerInputProperties);          //Create a viewer to pass the managedcomposite
         TableViewer viewer_ = new 
        
TableViewer((Composite)managedComposite_.getConfiguredComposite().getControl());          } 
     }


Related concepts

Views


Related tasks

Declare a managed composite


+

Search Tips   |   Advanced Search