SalesPoint Framework v3.0

Hook: Adding Items To Container - Button


Requirement

A data container's contents is displayed as a single table, and the ability to add items is needed.

Method of Adaptation
Enable Feature
Level of Support
Parameter Pattern  
HotSpot
Standard User Interaction for Data Management
Hooks used
Define New Strategy For Add Or Remove Button
Participants
SingleTableFormSheet, formSheet , AbstractAddCatalogItemStrategy, NewStrategy , FormSheetContentCreator, NewContentCreator

Changes

  1. instance formSheet of SingleTableFormSheet.
  2. if formSheet displays Catalog's contents:
    1. subclass NewStrategy of AbstractAddCatalogItemStrategy.
    2. NewStrategy.createCatalogItem implements AbstractAddCatalogItemStrategy.createCatalogItem .
  3. else:
    1. NewStrategy = Define New Strategy For Add Or Remove Button [NewStrategy].
  4. subclass NewContentCreator Of FormSheetContentCreator.
  5. NewContentCreator.createFormSheetContents overrides FormSheetContentCreator.createFormSheetContents :
    1. call formSheet.addAddButton with parameter instance of NewStrategy.

Constraints

Comments


SalesPoint Framework v3.0