[Arp] Generic Message Prompt Design Pattern
keithsalisbury at gmail.com
Wed Jan 11 03:14:16 PST 2006
Is there a commonly used design pattern to solve the issue of a
message prompt/window which needs to act differently depending on the
message it shows.
the message might be "that didnt work, do you want to try again" with
two buttons, "Ok" and "Cancel"
the message might be "well done, you did something right" with just
In the first example, there may be many occasions where a yes/no
question is asked, and the action will change each time, so it makes
sense that the "prompt" window simply dispatches the event, either
"OK" or "Cancel" etc and the listeners can deal with it as they see
.........how do you guys solve this problem?
More information about the Arp