posts - 431,  comments - 344,  trackbacks - 0
前两天遇到了一个问题,当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:

objGUIeither 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 周锐 阅读(406) 评论(0)  编辑  收藏 所属分类: TIBCO

只有注册用户登录后才能发表评论。


网站导航: