Creating list view widgets

Management Center list view widgets can display and be used to edit business object properties. If your business users need to view different groups of properties or properties for custom objects, you can create list view widgets to meet your business user needs.

About this task

The following diagram illustrates the process for creating list view widgets.

Creating a list view widget

Procedure

  1. Open HCL Commerce Developer and switch to the Enterprise Explorer view.
  2. Create a cell editor class that is named extGridWidgetEditor that subclasses the appropriate list view widget class definition. A cell editor is a view instance that enables the business user to update the value of a model property.
    1. Create and support an attribute that is named property, which is an instance of the model property definition.
    2. Register a delegate to listen to the onvalue event on that property and update the display of the property to reflect the new value if the property changes.
    3. When the business user changes the property value, call the model property definition change method.
  3. Create a cell viewer class that is named extGridWidgetViewer that extends the list view widget class definition. A cell viewer is a view instance that displays the value of a model property.
    1. Create and support an attribute that is named property, which is an instance of the model property definition and display the property value.
    2. Register a delegate to listen to the onvalue event on that property and update the display of the property to reflect the new value if the property changes.
    3. When the business user change the property value, call the model property definition change method.
  4. Create a class that extends the grid column definition and set the cell editor class and cell viewer class attributes to the cell editor and cell viewer classes.