On Friday, April 10, 2015 at 12:45:21 PM UTC+5:30, Abdul wrote:
--I have a class which implements interface, I need to call that method from JSNI in GWT.see the below code,interface:
public interface HeaderFormatter{ String format(String value); }class:
public GWTGrouping implements HeaderFormatter{ public String format(String value){ return "<span><i class='fa fa-stop'></i></span>"; } public void performGrouping(){ if(isgroup){ grouping(); } } public static native void grouping() /*-{ //dont want to pass whole class to this method (this) //Need to access format(String value) Method which will return some logic //How to access that method here by passing interface not whole class }-*/; }
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment