Revision history [back]

click to hide/show revision 1
initial version

asked 2009-05-20 02:36:31 +0800

hawk gravatar image hawk

http://hawkphoenix.blogsp... ZK Team

timeline can't paint multiple events with same date in some cases

Hi, everyone here: I have used timeline component for a while, I found that if we have several events with same date, timeline will NOT paint all of them if I use the following way:

1. set list model in public void doAfterCompose(Component comp) Bandinfo dayBand; ... ListModel events= new ListModelList(allEvents); dayBand.setModel(events);

2.use annotation databinding <timeline height="400px" width="100%" &gt;="" <bandinfo="" id="dayBand" width="60%" intervalunit="day" intervalpixels="100" model="@{}"/> <bandinfo id="monthBand" width="40%" intervalunit="month" trackheight="0.5" trackgap="0.2" intervalpixels="500" syncwith="dayBand" showeventtext="false"> </bandinfo> </timeline>

but if you make Bandinfo object add occurevent one by one, the timeline will paint all events with the same date. for (OccurEvent e:allEvents){ dayBand.addOccurEvent(e); }

is this a bug or original design? does anybody have similar experience?

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More