How to desing an action class with GUI?
I have an Action class, where an Action can do a some things like performing a list of differen actions, performing an action where a condition is true and enabling the user to choose among several other actions.
The last situation mentioned is the problematic one. I need some way to tell the User Interface "offer the user a choice". There are two different thing aI thought about:
-
To have the
action()function to set variables in the UI and return it. -
To Have the Action class where a
getNextActions()function returns aList of possible actions. If the list is one element, it will perform only that one, otherwise it should give user number of different choices.








