event type as "click". You might also set preventDefault(),
stopPropagation() property in NativeEvent.
@Override
public Set getConsumedEvents()
{
printNative(" getConsumedEvents() called ");
return Collections.singleton("click");
}
public void onBrowserEvent(Cell.Context context, Element parent,
Object value, NativeEvent event)
{
event.preventDefault();
event.stopPropagation();
printNative("click NativeEvent " + event);
}
S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE
On Sep 25, 12:57 am, Jonas <sark...@gmail.com> wrote:
> I have a CellTable with a custom cell that extends AbstractCell and
> overrides the render method for displaying its data. The problem is that I
> can't click inside the actual cell to select it, I have to click somewhere
> outside the cell. The default color change on mouse hover also does not work
> within the actual cell. I am using a SingleSelectionModel to display a popup
> when I select something in the cell table. What do I need to do to make my
> cell respond to clicks and handle the mouse over effect?
--
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+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