Monday, September 24, 2012

FlexTable listener help

I have a flextable and i would like to get info about a row when click on.  I have a listener but it is not working correctly

I have this click handler, but it is not working, am i doing this right? well, atleast close to being right?

Thanks

FlexTable fileTable = new FlexTable();

 fileTable.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                Cell cell = fileTable.getCellForEvent(event);
                int receiverRowIndex = cell.getRowIndex();
                System.out.println(receiverRowIndex);
            }
        });

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/G5EGEI-gbDQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment