Wow... okay, I think I figured it out! It turns out that, at least
with GWT 1.7.0, whitespace matters. The following code turned out to
be valid...
-----------------------
public static native void declareCustomMoveable(String
customMoveableId,
NativeCustomMoveableCallback callback) /*-{
$wnd.dojo.declare( customMoveableId, $wnd.dojox.gfx.Moveable, {
onFirstMove: function(mover){
callback.@gwtgfx.client.callback.CustomMoveableCallback::onFirstMove
();
},
onMoving: function(mover, shift){
callback.@gwtgfx.client.callback.jsni.NativeCustomMoveableCallback::onMoving
(Lgwtgfx/client/definition/jsni/NativeTransformDefinition;)(shift);
},
onMoved: function(mover, shift){
callback.@gwtgfx.client.callback.jsni.NativeCustomMoveableCallback::onMoved
(Lgwtgfx/client/definition/jsni/NativeTransformDefinition;)(shift);
}
});
}-*/;
-----------------------
Please ignore the change in class and package names in this code,
compared to the previous posts. I realize that there were other
errors there, but that's not what this is about. The GWT compiler
didn't like how I was putting the type declarations on their own
lines.
Sorry for the confusion... but I suppose this is still a useful
post, since I discovered how much whitespace matters here.
Cheers,
Mike
On Nov 23, 6:02 pm, MonkeyMike <
mikebin...@gmail.com> wrote:
> Still looking for an answer on this one... I am puzzled as to how to
> do this!
>
> By the way, I realized during some other debugging that this bit of
> code is one of many places where I was forgetting to state the "$wnd"
> namespace. So here is the latest version of the problematic code...
>
> ----------------------------
> public static native void declareCustomMoveable(String
> customMoveableId, NativeCustomMoveableCallback callback) /*-{
> $wnd.dojo.declare( customMoveableId, $wnd.dojox.gfx.Moveable, {
> onFirstMove: function(mover){