@JsType(namespace = JsPackage.GLOBAL)
public class OptionOverrides {
@JsProperty
public native String getInitialView();
@JsProperty
public native void setInitialView(String initialView);
}
It works but the FullCalendar complains about all the Java Object stuff that is translated to javascript : equals(), hashCode(), etc
I have tried to add isNative=true to my class, but in this case i cannot instantiate it in Java (error : $wnd.OptionOverrides is not a constructor)
Is there an other way to do this, am I missing something here ?
Thanks
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/a03c881a-48d4-4892-9fae-7719bc9a57b8n%40googlegroups.com.
@JsType(isNative=true, namespace = JsPackage.GLOBAL)
public class OptionOverrides {
@JsConstructor
public OptionOverrides() {}
@JsProperty
public native String getInitialView();
@JsProperty
public native void setInitialView(String initialView);
}
Still the same error : $wnd.OptionOverrides is not a constructor
@JsType(namespace = JsPackage.GLOBAL, isNative = true, name = "Object")
public class MyPluginConfig {
@JsProperty public void setXXXX(String str);
@JsProperty public String getXXXX();
...
}
Ref: https://stackoverflow.com/a/36329387/12407701
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/4d8099ea-3a37-4026-b459-f228e35ca59bn%40googlegroups.com.