Appreciate you guys passion and effort!!

On Wednesday, July 29, 2015 at 8:51:39 AM UTC-4, Ümit Seren wrote:
>
> I started to play around with JSInterop and GWT 2.8.0-SNAPSHOT. 
>
> Primarily I was following these documentation:
>
>
> https://docs.google.com/document/d/1tir74SB-ZWrs-gQ8w-lOEV3oMY6u6lF2MmNivDEihZ4/edit#
>
> However I ran into some issues regarding properties that don’t follow Java 
> bean style convention (i.e. xAxisParser) . 
>
> According to the javaDocs on the @JsProperty annotation it should be 
> possible to define properties also in this way : @JsProperty x(intx) 
> which translates to this.x=y.
> However when I try this, the compiler complains that the property doesn’t 
> follow Java Bean naming conventions. 
>
> I found a recent post about overhaul of JsInterop’s annotations (
> https://groups.google.com/forum/#!searchin/google-web-toolkit-contributors/annotations/google-web-toolkit-contributors/Dwdk-aEHs8Y/OvSNe6egUekJ)
>  
> and that it should be possible to
> override the property name. 
>
> I was curious if this is planned for the 2.8.0 release or if this will go 
> into GWT 3.0 ? 
>
> Currently my only workaround is to use JSNI: to set the property directly: 
>
> @JsType 
> interface MyInterface {
>    @JsProperty void setTitle(String title);
>    @JsProperty String getTitle();
>
>    void setXAxisParser(Callback callback);
> }
>
> public MyClass implements MyInterface {
>      public String title;
>      public Callback callback;
>
>     @Override
>      public void setTitle(String title) {
>          this.title = title;
>      }
>      @Override
>      public String getTitle() {
>           return title;
>      }
>      @Override
>      public void setXAxisParser(Callback callback)/*-{
>          this.xValueParser = callback;
>      }*-/;
> }
>
> ​
>

-- 
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/8fbe14e3-1c48-4e24-96a3-92566a7ebe53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to