Yours is working great, and the browser doesn't seem to care about the tall div. Well done!
On Monday, 16 March 2026 at 6:01:41 pm UTC+11 RobW wrote:
Looking very useful - nice workOn Sunday, 15 March 2026 at 22:05:03 UTC cbruno...@gmail.com wrote:I did consider using the DOM to render the cells. The main reason I went with canvas (aside from speed) was wanted the neat column reordering effect where the contents of the cells moves with the dragged column. Definitely this implementation is not a general datatable (e.g. its not useful for rendering UI elements in the cells, just data that can be drawn as strings). The main motivation is to display data from a data set.On Sunday, March 15, 2026 at 4:14:26 PM UTC-5 Jens wrote:Back in the days of IE6 I did something similar for long lists but without using canvas. Basically the developer had to define the item/cell height (or multiple heights if multiple item types exist in the list) so the height of the container/list and absolute position of items in that list could be calculated. Then it made sure to use the minimal amount of elements needed to fill the visible area and during scrolling elements were added/removed accordingly. So only 30 elements or so were used at a time.That way the list could handle a lot ot items in IE6 at the cost of predefined static item heights while still sticking to the mental model of widgets. Later GWT introduced cell widgets which use HTML strings to use with innerHTML. Because of the string based nature I never really liked the API and still using the list made for IE6.Using canvas to render the table is interesting and definitely fast but it also means styling is limited compared to CSS + HTML without reinventing the wheel for canvas. Something simple as a checkbox or button in a row matching the design system will be difficult.Have you tried the DOM based approach I outlined above and it was too slow for your use case? But it is nice that AI can help to explore such side projects you would never start otherwise because of time.-- J.cbruno...@gmail.com schrieb am Sonntag, 15. März 2026 um 03:28:25 UTC+1:I finally got around to bringing something like NSTableView from Cocoa to the web in pure GWT. Still a work in progress, this is something I wanted to get around to for the last 10 years:- Millions of rows,- Slick column reordering- Row headers- Various selection modesI was able to get it done while pair programming with Claude.Claude does well with Java and GWT. It works best when it can look at your project structure and add features that are not conceptually difficult but are tedious, especially accounting for edge cases. Its able to even understand and flawlessly add or refactor changes to UiBinder.I plan to release this on GitHub once its done..need to add a DataSource and the ability to have editors. But please let me know if anyone is interested in a component like this.
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/67f8009e-2de9-4628-8985-62c375f1aed3n%40googlegroups.com.
No comments:
Post a Comment