-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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%" >
<bandinfo id="dayBand" width="60%" intervalUnit="day" intervalPixels="100" model="@{calendarComposer.events}"/>
<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?
Asked: 2009-05-20 02:36:31 +0800
Seen: 139 times
Last updated: May 22 '09