There is going to be a JsMethod to provide custom names to the method so that you can name the method as abc() and map it to xyx() in the js.
But before that I didn't understand why it doesn't work out of the box. You are not overloading based on return type; one of the methods has an argument and the other one doesn't have any? On Mon, Nov 3, 2014 at 1:13 AM, confile <[email protected]> wrote: > 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 > <https://groups.google.com/d/msgid/google-web-toolkit-contributors/862d9a24-3a07-4181-9cc0-17b7a26401ee%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAN%3DyUA3vo-_YNhK6n265%2BPxKDof1UQOKnxq1dCtKFfeTzPj2AQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
