Home
Overview
Package
Class
Use
Tree
Deprecated
Hooks
HotSpot
Index
Help
SalesPoint Framework v3.0
PREV
NEXT
FRAMES
NO FRAMES
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
instance formSheet of SingleTableFormSheet.
if formSheet displays Catalog's contents:
subclass NewStrategy of AbstractAddCatalogItemStrategy.
NewStrategy.createCatalogItem implements
AbstractAddCatalogItemStrategy.createCatalogItem
.
else:
NewStrategy =
Define New Strategy For Add Or Remove Button
[NewStrategy].
subclass NewContentCreator Of FormSheetContentCreator.
NewContentCreator.createFormSheetContents overrides
FormSheetContentCreator.createFormSheetContents
:
call
formSheet.addAddButton
with parameter instance of NewStrategy.
Constraints
This hook may only be invoked from the
Display Contents Of Container
hook.
Comments
By overriding other methods in AbstractAddCatalogItemStrategy you can customize the CatalogItem's add sub-process.
If there are both, an add and a remove button, you can also use
data.stdforms.SingleTableFormSheet.addEditingButtons
.
Home
Overview
Package
Class
Use
Tree
Deprecated
Hooks
HotSpot
Index
Help
SalesPoint Framework v3.0
PREV
NEXT
FRAMES
NO FRAMES