Monday, May 30, 2011

Re: how do i add a tooltip to a column header in a celltable ?

thanks for your answer.
I had already explored that onBrowserEvent(...) possibility.

Where do i add that OnBrowserEvent(...) method to exactly ?

On Tue, May 31, 2011 at 2:31 AM, Juan Pablo Gardella <gardellajuanpablo@gmail.com> wrote:
You must do a event handler (overwrite onBrowserEvent2), CellTable in gwt 2.3.0 doesn't support events. See this example:

@Override
protected void onBrowserEvent2(Event event) {
super.onBrowserEvent2(event);

String eventType = event.getType();
boolean isMouseover = "mouseover".equals(eventType);
boolean isMouseout = "mouseout".equals(eventType);

// Get the event target.
EventTarget eventTarget = event.getEventTarget();
if (!Element.is(eventTarget)) {
return;
}
final Element target = event.getEventTarget().cast();


You can overwrite this method and can open a tooltip.



2011/5/30 Celinio <cel975@gmail.com>
hello,
i just have a simple question :
how do i add a tooltip to a column header in a celltable ?

Thanks for helping.

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

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

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