PDA

View Full Version : Status Tracker



sramalin
12 Oct 2010, 2:03 PM
I am in the process of designing/building a order tracker component similar to the dominos.com pizza tracker.

http://www.dominos.com/pages/tracker.jsp

I am considering two options:
1. To stack multiple progress bars in a column layout and use custom borders for each progress bar to achieve a 3d effect.
2. To implement is as a single row grid with a custom renderer for each cell. Not sure if a different renderer can be used for each cell. I am guessing YES, because the renderer is defined within the ColumnModel.

Has anyone tried implementing a multi-phase progress bar like this one?

Thanks,
sramalin

Condor
13 Oct 2010, 2:56 AM
Both options are really overkill for such a simple component.

I would start from scratch and write a new component based on BoxComponent (and maybe only borrow some stuff from ProgressBar).

sramalin
13 Oct 2010, 5:53 AM
So, what you are saying is I should write a custom BoxComponent, which has multiple other Box components for each category in the status and update the component as and when there is an update?

Condor
13 Oct 2010, 5:59 AM
No, you only need one Component and several Elements.