Hi, i want a cell to handle an event(double click) but i am having
problems on making it work.
I was trying to insert to handle this event overriding onBrowserEvent
and make different actions based on event
type. I don't now what the problem but it doesn't work.
Thanks.

Cell<Node> cell = new AbstractCell<Node>()
{
     @Override
     public void render(Context context, Node value, SafeHtmlBuilder
sb)
     {
        if (value != null) { sb.appendEscaped(value.getNodeName()
+"ermal");    }
     }
     @Override
     public void onBrowserEvent(Context context, Element parent, Node
value,
                               NativeEvent event, ValueUpdater<Node> 
valueUpdater)
     {

          if (value == null) {   return;              }
          super.onBrowserEvent(context, parent, value, event,
valueUpdater);

           if(Integer.parseInt(event.getType())==Event.ONDBLCLICK)
           {
ControllerPqm.getInstance().advise(ControllerPqm.ADVISE_ERROR,
"Chick");
           }
  }
};

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to