I want to define interface for lightweight collections as blow,but it
can't be compiled successfully.Any mistake here?
//...........................Interface...........................................
@SingleJsoImpl(JsArrayExtImpl.class)
public interface JsArrayExt<M>{
public void add(int addBefore, M model) ;
public void add(M model) ;
public void addAll(JsArrayExt<M> models);
}
//................................Implementation
public class JsArrayExtImpl<M extends JavaScriptObject> extends
JsArray<M> implements JsArrayExt<M>
{
protected JsArrayExtImpl()
{
}
@Override
public final native void add(int addBefore, M model) /*-{
this.splice(addBefore, 0, model);
}-*/;
@Override
public final void add(M model)
{
...
}
}
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment