FlexTable listener help

23 views
Skip to first unread message

coffeMan

unread,
Sep 24, 2012, 2:27:46 PM9/24/12
to google-we...@googlegroups.com
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);
            }
        });
Reply all
Reply to author
Forward
0 new messages