Take a look at this: http://www.future-earth.eu/gwt/calendar/MainDemoApp.html
and the horizontal time panel in particular. You may want to use that as it is, or to get ideas from it. HTH Paul grue wrote: > Hi Ian, > > thanks for your hint. Indeed, a FlexTable seems to be a better > solution since > I can hook the bars to the row. I will definitely put some text inside > the bars > as well as a ClickListener (maybe they should also be draggable). > That's why I thought of something like a SimplePanel whith "position: > absolute" > which is added to a row of the FlexTable. That would definitely be > draggable - > but I'm not sure if it works that way. > The current implementation uses a HTML table for the calendar and a > <div> element > for the bars ... but that only seems to work in webkit as expected. > > Cheers, > Michael > > On Oct 15, 6:52 pm, Ian Bambury <[email protected]> wrote: > >> A FlexTable instead of a grid would allow you to span columns in a row, add >> padding, and put a label in it. >> The only problem you will hit is that cell numbers get right complicated. In >> your example, you seem to have a granularity of 15m so on row one, you'd >> have 8 empty cells, then another cell spanning 0900-1445, then the next cell >> would be #9 (1445-1500), on an empty row, it would be #31 (as would the cell >> two below it on the third row would be). >> >> It definitely depends on how you are dealing with this - you could, for >> example, simply have a start-use image followed by any number of in-use >> images followed by and end-use image. But I dare say you are going to want >> to put text in there at some time, in which case you need to span. >> >> Ian >> >> http://examples.roughian.com >> >> 2009/10/15 grue <[email protected]> >> >> >> >> >> >> >>> Hi, >>> >>> I have implementet some sort of calendar widget using a Grid. This >>> calendar is supposed to show the availability of >>> various things. To indicate that a particular object is occupied in a >>> given timeframe I want to draw some "bars" across the calendar. >>> Look athttp://picbattle.ch/calendar.pngto see how it should look >>> like. >>> Since the calendar can grow very big it is inside a ScrollPanel. Now, >>> my question is what would be the best way to draw the "bars" >>> across the grid? The important thing is that they should scroll along >>> with the grid. >>> >>> Thanks in advance for any hints, >>> Michael >>> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
