/** * Moves the focus to the specified element. This will trigger any relevant JavaScript * event handlers. * * @param newElement the element that will receive the focus, use {@code null} to remove focus from any element * @return true if the specified element now has the focus * @see #getFocusedElement() */ public boolean setFocusedElement(final DomElement newElement) { return setFocusedElement(newElement, false); }
/** * Moves the focus to the specified element. This will trigger any relevant JavaScript * event handlers. * * @param newElement the element that will receive the focus, use {@code null} to remove focus from any element * @return true if the specified element now has the focus * @see #getFocusedElement() */ public boolean setFocusedElement(final DomElement newElement) { return setFocusedElement(newElement, false); }
/** * Moves the focus to the specified element. This will trigger any relevant JavaScript * event handlers. * * @param newElement the element that will receive the focus, use <code>null</code> to remove focus from any element * @return true if the specified element now has the focus * @see #getFocusedElement() * @see #tabToNextElement() * @see #tabToPreviousElement() * @see #pressAccessKey(char) * @see WebAssert#assertAllTabIndexAttributesSet(HtmlPage) */ public boolean setFocusedElement(final HtmlElement newElement) { return setFocusedElement(newElement, false); }
/** * Moves the focus to the specified element. This will trigger any relevant JavaScript * event handlers. * * @param newElement the element that will receive the focus, use <code>null</code> to remove focus from any element * @return true if the specified element now has the focus * @see #getFocusedElement() * @see #tabToNextElement() * @see #tabToPreviousElement() * @see #pressAccessKey(char) * @see WebAssert#assertAllTabIndexAttributesSet(HtmlPage) */ public boolean setFocusedElement(final HtmlElement newElement) { return setFocusedElement(newElement, false); }
/** * Moves the focus to the specified element. This will trigger any relevant JavaScript * event handlers. * * @param newElement the element that will receive the focus, use <code>null</code> to remove focus from any element * @return true if the specified element now has the focus * @see #getFocusedElement() * @see #tabToNextElement() * @see #tabToPreviousElement() * @see #pressAccessKey(char) * @see WebAssert#assertAllTabIndexAttributesSet(HtmlPage) */ public boolean setFocusedElement(final HtmlElement newElement) { return setFocusedElement(newElement, false); }
/** * Removes focus from this element. */ public void blur() { ((HtmlPage) getPage()).setFocusedElement(null); }
/** * Removes focus from this element. */ public void blur() { ((HtmlPage) getPage()).setFocusedElement(null); }
/** * Removes focus from this element. */ public void blur() { ((HtmlPage) getPage()).setFocusedElement(null); }
/** * Removes focus from this element. */ public void blur() { ((HtmlPage) getPage()).setFocusedElement(null); }
/** * Removes focus from this element. */ public void blur() { ((HtmlPage) getPage()).setFocusedElement(null); }
/** * Sets the focus on this element. */ public void focus() { final HtmlPage page = (HtmlPage) getPage(); page.setFocusedElement(this); final Object o = getScriptableObject(); if (o instanceof HTMLElement) { ((HTMLElement) o).setActive(); } }
/** * Sets the focus on this element. */ public void focus() { final HtmlPage page = (HtmlPage) getPage(); page.setFocusedElement(this); final Object o = getScriptableObject(); if (o instanceof HTMLElement) { ((HTMLElement) o).setActive(); } }
/** * Sets the focus on this element. */ public void focus() { ((HtmlPage) getPage()).setFocusedElement(this); final WebClient webClient = getPage().getWebClient(); if (webClient.getBrowserVersion().isIE()) { final HTMLElement jsElt = (HTMLElement) getScriptObject(); jsElt.jsxFunction_setActive(); } }
/** * Sets the focus on this element. */ public void focus() { ((HtmlPage) getPage()).setFocusedElement(this); final WebClient webClient = getPage().getWebClient(); if (webClient.getBrowserVersion().isIE()) { final HTMLElement jsElt = (HTMLElement) getScriptObject(); jsElt.jsxFunction_setActive(); } }
/** * Sets the focus on this element. */ public void focus() { ((HtmlPage) getPage()).setFocusedElement(this); final WebClient webClient = getPage().getWebClient(); if (webClient.getBrowserVersion().isIE()) { final HTMLElement jsElt = (HTMLElement) getScriptObject(); jsElt.jsxFunction_setActive(); } }
/** * Sets the object as active without setting focus to the object. * @see <a href="http://msdn.microsoft.com/en-us/library/ms536738.aspx">MSDN documentation</a> */ public void jsxFunction_setActive() { final Window window = getWindow(); final HTMLDocument document = window.jsxGet_document(); document.setActiveElement(this); if (window.getWebWindow() == window.getWebWindow().getWebClient().getCurrentWindow()) { final HtmlElement element = getDomNodeOrDie(); ((HtmlPage) element.getPage()).setFocusedElement(element); } }
/** * Sets the object as active without setting focus to the object. * @see <a href="http://msdn.microsoft.com/en-us/library/ms536738.aspx">MSDN documentation</a> */ public void jsxFunction_setActive() { final Window window = getWindow(); final HTMLDocument document = window.jsxGet_document(); document.setActiveElement(this); if (window.getWebWindow() == window.getWebWindow().getWebClient().getCurrentWindow()) { final HtmlElement element = getDomNodeOrDie(); ((HtmlPage) element.getPage()).setFocusedElement(element); } }
/** * Sets the object as active without setting focus to the object. * @see <a href="http://msdn.microsoft.com/en-us/library/ms536738.aspx">MSDN documentation</a> */ public void jsxFunction_setActive() { final Window window = getWindow(); final HTMLDocument document = window.jsxGet_document(); document.setActiveElement(this); if (window.getWebWindow() == window.getWebWindow().getWebClient().getCurrentWindow()) { final HtmlElement element = getDomNodeOrDie(); ((HtmlPage) element.getPage()).setFocusedElement(element); } }
/** * Sets the object as active without setting focus to the object. * @see <a href="http://msdn.microsoft.com/en-us/library/ms536738.aspx">MSDN documentation</a> */ @JsxFunction(IE) public void setActive() { final Window window = getWindow(); final HTMLDocument document = (HTMLDocument) window.getDocument(); document.setActiveElement(this); if (window.getWebWindow() == window.getWebWindow().getWebClient().getCurrentWindow()) { final HtmlElement element = getDomNodeOrDie(); ((HtmlPage) element.getPage()).setFocusedElement(element); } }
/** * Sets the object as active without setting focus to the object. * @see <a href="http://msdn.microsoft.com/en-us/library/ms536738.aspx">MSDN documentation</a> */ @JsxFunction(IE) public void setActive() { final Window window = getWindow(); final HTMLDocument document = (HTMLDocument) window.getDocument(); document.setActiveElement(this); if (window.getWebWindow() == window.getWebWindow().getWebClient().getCurrentWindow()) { final HtmlElement element = getDomNodeOrDie(); ((HtmlPage) element.getPage()).setFocusedElement(element); } }