Good question. I've wrapped an api or two and I've found it's alot of work. Since then, wrapping using JSNI feels painful. So I've been working on a generator to build the jsinterop for the extjs api with the flip of a switch. Besides that, the extjs team is cruising on the future iterations and I wanted something to keep up with what they put out.
On Thu, Mar 17, 2016 at 7:10 AM Alain Ekambi <[email protected]> wrote: > Which brings me back to the question of why not help improving ext4j > instead of having tons of micro solutions ? > On 17 Mar 2016 14:50, "Brandon Donnelson" <[email protected]> wrote: > >> ateletin, I've been working using jsinterop with extjs 6+, if you have >> some questions ping me and I can help with that. There are two ways to >> configure it, first is using ext.define. The other is using the ext class >> and instantiate it with a config object. Ext.define is far more documented >> than instantiating the classes, so it's easier. I've got a generator for >> generating all the class types, but it's not finished yet. >> >> Thanks, >> Brandon >> >> On Thursday, March 17, 2016 at 1:44:47 AM UTC-7, ateletin wrote: >>> >>> 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. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "GWT Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/google-web-toolkit/4tyws5bK11s/unsubscribe > . > To unsubscribe from this group and all its topics, 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. > -- 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.
