I am new relatively new to using JSNI in GWT, just wanted to know whether its possible to create a DOM elelment using JSNI? I have tried to use the following:
private class myImageElement extends ImageElement {
private boolean inUse = false;
protected myImageElement() {}
public final native void setIfinUse(boolean check) /*-{this.inUse=check}-*/ ;
public final native boolean checkIfinUse() /*-{return this.inUse}-*/ ;
}
Now the code to create an object of myImageElement would be:
private native myImageElement get() /*-{ what should be here } -*/
Since I didnt not find anyway to create it using JSNI, can anybody please let me know whether I am doing it correctly or not?