Description:
Implement KeyHandlers (other event handlers) for ScrollTable or for the
datatable (FixedWidthGrid) of the ScrollTable.
Detailed description (please be as specific as possible):
Bring the new event architecture to the ScrollTable/PagingScrollTable by
having them implement some logical event handlers (e.g. key handlers). Use
case: using the arrow keys to navigate the "selected" row or cell of the
table or pressing enter to edit the cell using the CellEditor.
Currently using:
GWT Incubator drop for GWT 1.6
Example code snippet:
dataTable.addKeyDownHandler(new KeyDownHandler() {
public void onKeyDown(KeyDownEvent event) {
// maybe include some information about the previous and new
// selected cell and row(s) in the key down event
}
});
Current workaround:
Put the entire ScrollTable in a FocusPanel and add a KeyDownHandler to the
FocusPanel to listen for key events for the table. However, then, we must
explicitly set the focus back on the focus panel after certain events (e.g.
closing a dialog or popup box) in order to begin handling the key events
again.
Links to relevant GWT Developer Forum posts:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/fed7add21
5b305a8?pli=1
Original issue reported on code.google.com by vickiedu...@gmail.com on 19 Jun 2009 at 5:02
Original issue reported on code.google.com by
vickiedu...@gmail.com
on 19 Jun 2009 at 5:02