Found in Release:
gwt-maps 1.0.4
Detailed description:
The callback methods in GoogleBarOptions were left unimplmented
Workaround if you have one:
Since GoogleBarOptions is a JavaScriptObject subclass, you can add these
properties with a JSNI method. Here is an (untested!) suggestion:
// Java code to be called back when the callback fires
private static void callback(JavaScriptObject markerObject) {
// Wraps the JSO as a marker. This can only be done once per marker
Marker marker = Marker.createPeer(markerObject);
}
// Add the callback property to the GoogleBarOptions
private static native void
addonGenerateMarkerHtmlCallback(GoogleBarOptions options) {
options.onGenerateMarkerHtmlCallback = function (markerObject) {
@com.example.MyClass.callback(Lcom/google/gwt/core/client/JavaScriptObject;)(mar
kerObject);
};
}
// Sample usage:
GoogleBarOption options = GoogleBarOptions.newInstance(
...
addOnGenerateCallback(options);
Links to the relevant GWT Developer Forum posts:
Original issue reported on code.google.com by galgwt.reviews@gmail.com on 8 May 2009 at 1:43
Original issue reported on code.google.com by
galgwt.reviews@gmail.com
on 8 May 2009 at 1:43