Control.requestFocus

Sets the browser focus to the control. This method overrides all other circumstances by which focus might be set: display of error messages, click of button etc. The focus for each page is reset after the page has been displayed to the user. Focus can be removed by either setting the focus to another control or using method com.ebasetech.xi.api.Page#clearFocus().

Further documentation.