SalesPoint Framework v3.0

Hook: Create A Table


Requirement

A table is needed for displaying the contents of some data container. This hook is somewhat generic in that it solely describes the usual procedure. This procedure might vary slightly for concrete subclasses of the abstract table implementation. However, the general principle should hold well.

Method of Adaptation
Enable Feature
Level of Support
Parameter Pattern  
HotSpot
Tables
Hooks used
Select Table Layout , Define Table Sort Order
Participants
data , entryDescriptor , comparator , JAbstractTable, NewTable , table

Changes

  1. select data container to be displayed: data.
  2. entryDescriptor = Select Table Layout [entryDescriptor].
  3. comparator = instance of Define Table Sort Order [NewComparator].
  4. subclass NewTable of util.swing.JAbstractTable .
  5. instance table of NewTable with data, entryDescriptor, comparator.
  6. integrate table into FormSheet and display FormSheet.

SalesPoint Framework v3.0