ProgressIndicator: Cool, what's the task to do?
Author: Well, our awesome algorithm is taking too long and users are just leaving our state-of-the-art web application. So ProgressIndicator, we need your help to give
the user some feedback about the progress of the process.
Author: Thank you sir. Take a look at our original application implementing this Java Thread performing our high-tech algorithm:
Author: Thank you. It took us months to implement it. Anyways, we would like to add you, Mr. ProgressIndicator, to our layout, so you can tell the user how the progress of the algorithm is going. Is that OK for you?
ProgressIndicator: Sure. Let me place myself as a private member of your UI class.
Author: Of course, come in. And please add yourself into our main layout:
ProgressIndicator: My favorite color!
Author: Nice. For each iteration of our algorithm I will update you, OK?
ProgressIndicator: Yes please.
Author: Cool. You accept values in which range?
ProgressIndicator: Give me a float between 0 and 1.
Author: OK. There you go:
Author: Great! Let's run the app. Are you ready reader? You have been kind of quiet lately.
ProgressIndicator: Yeah. I think she/he might be overwhelmed by the high-tech algorithm.
Author: That's reasonable. Let's test our application:
Author: Wonderful job ProgressIndicator. Thank you very much.
ProgressIndicator: My pleasure.