OK, so I'm very new to GWT so bear with me :) I'm working my way through the mail sample and decided to make a simple change. Turns out it was not that simple.
In the MailList.java file, I want to change the code so selection of a row responds to a MouseOverEvent instead of a ClickEvent. The application should respond in the exact same way as it originally responds to a ClickEvent. That means I need to modify the onTableClicked method. What is does now is to call the getCellForEvent method from FlexTable (inherited from HTMLTable) to get the cell and then the style is modified and an MailList.Listener event is fired. The problem is that getCellEvent can only be used with ClickEvents, so I'll need to do something different. From the HTMLTable source is seems that getCellEvent is a fairly simple wrapper around the protected getEventTargetCell, so my first approach was to extend FlexTable with my own class, overload the getCellEvent method and Presto!, it didn't work. The first problem was getting access to the Cell constructor which I "solved" by putting my EnhancedEventFlexTable class in the com.google.gwt.user.client.ui package but then I got into trouble with some handler mechanism that I do not fully understand at this point. My alternative approach would be to "simulate" a ClickEvent on the basis of the MouseOverEvent but that sorta feels like a hack. What is the way forward here? -- 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.
