在 CellTable 单元格中添加双击事件 - GWT [英] adding Double click event in CellTable cell - GWT

查看:19
本文介绍了在 CellTable 单元格中添加双击事件 - GWT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何向 CellTable 的单元格添加双击事件.

I am unable to figure out how could I add a double click event to the cell of the CellTable.

是否可以使用 GWT CellTable?

Is it possible with GWT CellTable or not?

有什么解决办法

谢谢...

al

顺便说一句,我看到了这个帖子,但没有回复......http://www.devcomments.com/Adding-DoubleClicks-and-OnContextMenu-to-CellTable-at1066168.htm

BTW, i saw this post but there is no reply... http://www.devcomments.com/Adding-DoubleClicks-and-OnContextMenu-to-CellTable-at1066168.htm

推荐答案

    cellTable.addDomHandler(new DoubleClickHandler() {

        @Override
        public void onDoubleClick(DoubleClickEvent event) {
            Window.alert("That's it!");
        }
    }, DoubleClickEvent.getType());

这篇关于在 CellTable 单元格中添加双击事件 - GWT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆