Maybe I wasn't clear enough. What I want to do is to wrap the following
javascript into a java object like.
Ext.define('com.acme.client.Person', {
firstName : 'Kimi',
lastName : 'Raikkonen',
fullName : function() {
return firstName + " " + lastName;
}
});
into
package com.acme.client;
@JsType(isNative = true)
public class Person {
public String firstName;
public String lastName;
public native String fullName();
}
So by calling java fullName() to return the result of javascript fullName(),
or when I call java firstName to return "Kimi".
Can ExtJs Wrapper API help me with this? If so, can you give me a direction?
And yes, we don't plan to wrap the ExtJs library.
--
View this message in context:
http://google-web-toolkit.2317884.n4.nabble.com/JsInterop-and-Sencha-Ext-js-framework-tp15385p15403.html
Sent from the Google Web Toolkit mailing list archive at Nabble.com.
--
You received this message because you are subscribed to the Google Groups "GWT
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.