前兩天遇到了一個問題,當textbox組件獲得焦點的時候,要選擇它的值。而在GI3.4版本中,使用tab鍵轉移焦點默認下就是選擇了textbox中的值,而我們現在是觸發focus事件,這樣當textbox獲得焦點的時候,里面的值并沒有選上。現在解決的具體辦法是:
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
周銳 閱讀(431)
評論(0) 編輯 收藏 所屬分類:
TIBCO