SalesPoint Framework v3.0

Hook: Removing Items From Container - Button


Requirement

A data container's contents is displayed as a single table, and the ability to remove the selected item 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 , DefaultRemoveCatalogItemStrategy, strategy , FormSheetContentCreator, NewContentCreator

Changes

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

Constraints

Comments


SalesPoint Framework v3.0