Is there a way to extend a @JsType interface such that the new Java object
has new properties and methods? I know that it is planned in future but is
there also a posibility of doing it right now?
Here is how I do it for properties:
@JsType(prototype = "$wnd.Kinetic.Node")
public interface Node {
public static abstract class Statics {
public static native Node create() /*-{
return new $wnd.Kinetic.Node();
}-*/;
public static native void isLocked(Node node, boolean value) /*-{
node.isLocked = value;
}-*/;
public static native boolean isLocked(Node node) /*-{
return !!node.isLocked;
}-*/;
}
}
--
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/1cfc8e3a-cc45-4ec3-baf3-19100d1e6ddc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.