// get draggable flag
var draggable = node.draggable();
// enable drag and drop
node.draggable(true);@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 google-web-toolkit-co...@googlegroups.com.
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.
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 <michael....@googlemail.com> 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 google-web-toolkit-contributors+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/6dfbc8e7-9997-4918-aeb3-befea70bd9d2%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/e1e7513e-dbb0-4326-934c-8cbd2e720aba%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
@goktug I saw in the repositories, there GWT 2.8.0-SNAPSHOT, what does it mean?It is there where we find changes support java 8 and other changes that have to do with jsInterop?
[ERROR] Line 100: JsType methods cannot overload another method.
[ERROR] Aborting compile due to errors in some input files