Firing click event from code in gwt

后端 未结 8 664
甜味超标
甜味超标 2020-12-03 10:27

I have created a custom widget in gwt which extends the composite.I am using focus panel in that.For FocusPanel I added ClickHandler.Then I have added keyboard listner.Now o

8条回答
  •  情深已故
    2020-12-03 10:59

    You can also use a simple JSNI method to do it. Just pass your element [e.g. button.getElement()] to this method:

    public static native void clickElement(Element elem) /*-{
        elem.click();
    }-*/;
    

提交回复
热议问题