SalesPoint Framework v3.0

Hook: Define a FormSheet


Requirement

A FormSheet needs to be defined that can be displayed by a SalesPoint or as part of a SaleProcess.

Method of Adaptation
Add Feature
Level of Support
Parameter Pattern  
HotSpot
FormSheets
Hooks used
Define an Action
Participants
FormSheet, newFormSheet , fs , FormSheetContentCreator, NewFormSheetContentCreator , JComponent, newComponent , action

Changes

  1. subclass NewFormSheetContentCreator of FormSheetContentCreator.
  2. NewFormSheetContentCreator.createFormSheetContent overrides FormSheetContentCreator.createFormSheetContent (let fs := FormSheet passed as parameter):
    1. instance newComponent of JComponent or subclass.
    2. call fs.setComponent with component newComponent.
    3. if default " OK " and " Cancel " buttons not wanted:
      1. call fs.removeAllButtons .
    4. repeat as needed:
      1. instance action of Define an Action [NewAction].
      2. call fs.addButton with parameters button caption, button id and action.
  3. instance newFormSheet of FormSheet with caption and instance of NewFormSheetContentCreator.

Comments


SalesPoint Framework v3.0