Table双击数据行是跳到编辑页面,请求问一下Table有双击事件吗?我想双击数据行跳到我自定义的页面
用 setItemClickAction
:
@Subscribe
public void onAfterShow(final AfterShowEvent event) {
productsTable.setItemClickAction(new AbstractAction() {
@Override
public void actionPerform(Component component) {
System.out.println("row clicked:" + productsTable.getSelected().iterator().next().getName());
}
});
}