前兩天遇到了一個(gè)問題,當(dāng)textbox組件獲得焦點(diǎn)的時(shí)候,要選擇它的值。而在GI3.4版本中,使用tab鍵轉(zhuǎn)移焦點(diǎn)默認(rèn)下就是選擇了textbox中的值,而我們現(xiàn)在是觸發(fā)focus事件,這樣當(dāng)textbox獲得焦點(diǎn)的時(shí)候,里面的值并沒有選上。現(xiàn)在解決的具體辦法是:
textbox: events editor: focus: this.getRendered().select();
HTMLElement getRendered(objGUI
: Object | jsx3.gui.Event)
Returns handle/reference to the JSX GUI Object's on-screen counterpart—basically a handle to a DHTML object such as a DIV, SPAN, etc
Parameters:
objGUI – either the HTML document containing the rendered object or an HTML element in that document. This argument is optional but improves the efficiency of this method if provided。
Returns:
IE DHTML object
posted on 2007-05-30 13:14
周銳 閱讀(441)
評(píng)論(0) 編輯 收藏 所屬分類:
TIBCO