On Monday, September 26, 2011 2:36:43 PM UTC+2, Jonas wrote:
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");
}
super("click") is redundant with the getConsumedEvents override.
@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?
Doing something on click in onBrowserEvent? How are you testing things? What's the expected behavior?
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/-/jsqMkmCaA-oJ.
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