0
我在GWT中有一個TextArea類,但是我的事件處理方法似乎沒有被調用。我定義我的課像這樣:GWT TextArea onBlur沒有被調用
private class MTextBox extends TextArea {
public MTextBox() {
super();
this.addDomHandler(new BlurHandler(){
@Override
public void onBlur(BlurEvent event) {
//Handle Blur
}
}, BlurEvent.getType());
this.addDomHandler(new FocusHandler(){
@Override
public void onFocus(FocusEvent event) {
// Handle Focus.
}
}, FocusEvent.getType());
}