0

I'm having trouble attaching an SelectionHandler to the contents of the mgwt HeaderList. How can I attach a CellSelectedHandler to a HeaderList just like in the Showcase? http://mobilegwt.appspot.com/showcase/#GroupedCellListPlace:

I already tryed to attach the Handler to the GrouingCellList with wich the HeaderList is built, but this Handler is never fired.

Anyone done this already?

4

1 回答 1

0

我设法使用 SelectionHandler 而不是 GroupingCellList 上的 CellSelectedHandler 来获取 SelectEvents

        addHandlerRegistration(view.getList().addSelectionHandler(new SelectionHandler<Content>(){
        @Override
         public void onSelection(SelectionEvent<Content> event) {
                Window.alert("event"+event.getSelectedItem().getName());
        }
    }));
于 2013-05-11T11:06:49.930 回答