onFocus事件未在文本框上觸發。我有下面的代碼,我使用GWT 2.6.0未在文本框上觸發GWT onFocus事件
當我在文本框上使用焦點處理程序,然後它的工作正常,但我也有瀏覽器事件,我不能觸發焦點event.Below是代碼在瀏覽器上。
@Override
public void onBrowserEvent(Context context, Element parent, String value, NativeEvent event,
ValueUpdater<String> valueUpdater)
{
String eventType = event.getType();
if(BrowserEvents.FOCUS.equals(eventType))
{
//Do what you want on focus
}
它是什麼樣的文本框? HTML的''或GWT的'TextBox'? – 2014-10-20 12:45:55
它的GWT文本框 – Ganesh 2014-10-20 12:49:18