[Arp] Generic Message Prompt Design Pattern
Keith Salisbury
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.
For example,
the message might be "that didnt work, do you want to try again" with
two buttons, "Ok" and "Cancel"
or
the message might be "well done, you did something right" with just
"Continue" button
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
fit.
.........how do you guys solve this problem?
tia
keith
More information about the Arp
mailing list