Tuesday, September 27, 2011

Re: add Handler to RichTextArea elements

On the GWT IRC channel I got a hint how to solve it. Now I have
implemented it this way:

class MyRichTextArea extends RichTextArea {

@Override
public void onBrowserEvent(Event event) {
if (DOM.eventGetType(event) == Event.ONMOUSEOVER) {
// check event.getEventTarget() and do some stuff
} else {
super.onBrowserEvent(event);
}
}

}

On 26 Sep., 13:29, Alesandro Lang <alesandro.l...@googlemail.com>
wrote:
> Is it possible to add for example a MouseOverHandler to all my <b>
> tags inside a RichTextArea?
> (so far I don't know how I could solve this because these elements are
> no widgets)

--
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