Hmm, I can't get it to work. Here's my full code:
public class GroupCell extends AbstractCell<GroupDto>
{
public GroupCell()
{
super("click");
}
@Override
public Set<String> getConsumedEvents()
{
return Collections.singleton("click");
}
@Override
public void onBrowserEvent(Context context, Element parent, GroupDto value, NativeEvent event,
ValueUpdater<GroupDto> valueUpdater)
{
if (value == null)
{
return;
}
event.preventDefault();
event.stopPropagation();
}
@Override
public void render(Context context, GroupDto group, SafeHtmlBuilder sb)
{
...
}
}
Am I missing something?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/G5IOlqMVnIYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment