Hi @ all,
I want to make a context menu on a celltable. This should appear, when
a user right-clicks a column in the
CellTable. Also I want to implement a handler, when a user double-
clicks on a column.
I got it working, that simple clicks are recognized and handled
correct. But ONCONTEXTMENU and ONDBLCLICK
doesn´t work for me. So there nothing is happening.
I tried to create my own TextCell, and override the onBrowserEvent()
there, but this is not working, too.
Anybody can help me, how I can get these Events to be recognized and
handled?
Here´s a piece of my code:
public class CellTableView<T> extends CellTable<T>{
@Override
public void onBrowserEvent2(Event event){
super.onBrowserEvent2(event);
if(DOM.eventGetType(event) == Event.ONCLICK){
//this is wiorking
}
if(DOM.eventGetType(event) == Event.ONCONTEXTMENU){
// not working
}
if(DOM.eventGetType(event) == Event.ONDBLCLICK){
// not working
}
Thanks for your help!!
Greets. Alex
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.