SalesPoint Framework v3.0

Hook: Define Action For Button In Component


Requirement

An action is to be associated with a button in the JComponent part of a FormSheet.

Method of Adaptation
Enable Feature
Level of Support
Parameter Pattern  
HotSpot
FormSheets
Hooks used
Define an Action
Participants
JButton, button , FormSheet, formSheet , action , ActionActionListener, listener

Changes

  1. instance button of JButton.
  2. instance formSheet of FormSheet.
  3. instance action of Define an Action [NewAction].
  4. instance listener of ActionActionListener with parameter formSheet and action.
  5. call button.addActionListener with parameter listener.

Constraints


SalesPoint Framework v3.0