Hi, I want to customize the hoover text of a CalendarEvent in my Timeline.
I use smartGWT version : SNAPSHOT_v10.1d_2014-10-27/PowerEdition Deployment (built 2014-10-27)
with Firefox 24.8.1
So here part of my code :
Then when I add an event to this timeline and get my mouse over the event I get this Exception:
Well, I can't hardly understand why there is a ClassCastException because I don't cast anything.
Can you help me please ?
Regards
I use smartGWT version : SNAPSHOT_v10.1d_2014-10-27/PowerEdition Deployment (built 2014-10-27)
with Firefox 24.8.1
So here part of my code :
Code:
calendar = new Timeline();
...
calendar.setEventHoverHTMLCustomizer(new EventHoverHTMLCustomizer() {
@Override
public String getEventHoverHTML(CalendarEvent calendarEvent, EventWindow eventWindow) {
return "Description : "+calendarEvent.getDescription();
}
});Code:
java.lang.ClassCastException: Cannot cast com.smartgwt.client.widgets.calendar.EventCanvas to com.smartgwt.client.widgets.calendar.EventWindow
at java.lang.Class.cast(Unknown Source)
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:163)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:65)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:356)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Unknown Source)Can you help me please ?
Regards