On Jan 5, 7:21 pm, Felipe Toledo <[email protected]> wrote: > interface IEntity { > int getX(); > > } > > class A extends JavaScriptObject implements IEntity { > public int getX() { return Y(); } > > public final native int Y() /*-{ > return this.y; > }-*/; > > } > > class A extends JavaScriptObject implements IEntity { > > public int getX() { return Z(); } > > public final native int Z() /*-{ > return this.z; > }-*/; > > }
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html#javascript-objects says: """Practically speaking, this means that only one JavaScriptObject type may implement any given interface, but any number of non- JavaScriptObject types may also implement that interface."""
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
