Consider the following JavaScript functions:

// get draggable flag
var draggable = node.draggable();

// enable drag and drop
node.draggable(true);



I do not see how I can modle them in JsInterop. The following would not 
work:

@JsType(prototype = "$wnd.Kinetic.Node")

public interface KNode {

 void draggable(boolean value);

 boolean draggable();

}

The former would not work because overlaying in Java based on return type 
is forbidden. I also could not use @JsProperty because the getter and 
setter are JavaScript functions.

Is there another way to deal with this in JsInterop?




-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/862d9a24-3a07-4181-9cc0-17b7a26401ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to