mgwt将CellSelectedHandler附加到HeaderList内的GroupingCellList

mgwt将CellSelectedHandler附加到HeaderList内的GroupingCellList,gwt,mgwt,celllist,Gwt,Mgwt,Celllist,我无法将SelectionHandler附加到mgwt HeaderList的内容。 如何像在Showcase中一样将CellSelectedHandler附加到HeaderList? : 我已经尝试将处理程序附加到构建了HeaderList的GrouingCellList中,但该处理程序从未被触发 有人已经这样做了吗?我设法使用SelectionHandler而不是GroupingCellList上的CellSelectedHandler获取SelectEvents addHa

我无法将SelectionHandler附加到mgwt HeaderList的内容。 如何像在Showcase中一样将CellSelectedHandler附加到HeaderList? :

我已经尝试将处理程序附加到构建了HeaderList的GrouingCellList中,但该处理程序从未被触发


有人已经这样做了吗?

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

        addHandlerRegistration(view.getList().addSelectionHandler(new SelectionHandler<Content>(){
        @Override
         public void onSelection(SelectionEvent<Content> event) {
                Window.alert("event"+event.getSelectedItem().getName());
        }
    }));
addHandlerRegistration(view.getList().addSelectionHandler(new SelectionHandler()){
@凌驾
选举时公共无效(SelectionEvent事件){
报警(“事件”+事件.getSelectedItem().getName());
}
}));

我已经用过CellList及其处理程序了……它对你有用吗?用CellList我也很成功,但用HeaderList中的GroupingCellList似乎不起作用。