CellTable - DoubleClick

136 views
Skip to first unread message

develop.acb

unread,
Jan 12, 2012, 5:05:15 AM1/12/12
to Google Web Toolkit
Hi,
I´am not able to get a DoubleClick working on a row in a CellTable
widget.
I found an article in this group "ClickableCell double click event
(CellTable) " - but I can´t get it to work!

The following code works - but I get still the double click on the
celltable header.

MyCellTableClass

...
sinkEvents(Event.ONDBLCLICK);
...

@Override
public void onBrowserEvent(Event event) {
switch (DOM.eventGetType(event)) {
case Event.ONDBLCLICK:
AppUtils.EVENT_BUS.fireEvent(new
ShowFplDetailsEvent(selectionModel.getSelectedObject()));
break;
}
}

Could anybody give me an hint?

Tank you very much...
greetings - develop.acb

KalyanChakri

unread,
Jul 26, 2012, 5:24:08 AM7/26/12
to google-we...@googlegroups.com, devel...@googlemail.com
1. Implement DoubleClickHandler in CellTable extended class.
2. Add the following line in the code addDomHandler(this, DoubleClickEvent.getType());
3. Override the DoubleClick()

public void onDoubleClick(DoubleClickEvent aEvent) {

// your code.

}

Reply all
Reply to author
Forward
0 new messages