/** * 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); }
public HtmlPage apply(WebSudoLogin login) { return (HtmlPage) login.client.currentPage().firstElement().getPage(); } }
/** * Simulates a click on a scrollbar component (IE only). * @param scrollAction the type of scroll action to simulate */ public void jsxFunction_doScroll(final String scrollAction) { if (((HtmlPage) getDomNodeOrDie().getPage()).isBeingParsed()) { Context.throwAsScriptRuntimeEx( new Exception("The data necessary to complete this operation is not yet available.")); } // Ignore because we aren't displaying anything! }
/** * Simulates a click on a scrollbar component (IE only). * @param scrollAction the type of scroll action to simulate */ public void jsxFunction_doScroll(final String scrollAction) { if (((HtmlPage) getDomNodeOrDie().getPage()).isBeingParsed()) { Context.throwAsScriptRuntimeEx( new Exception("The data necessary to complete this operation is not yet available.")); } // Ignore because we aren't displaying anything! }
/** * Simulates a click on a scrollbar component (IE only). * @param scrollAction the type of scroll action to simulate */ public void jsxFunction_doScroll(final String scrollAction) { if (((HtmlPage) getDomNodeOrDie().getPage()).isBeingParsed()) { Context.throwAsScriptRuntimeEx( new Exception("The data necessary to complete this operation is not yet available.")); } // Ignore because we aren't displaying anything! }
/** * 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 web client's current homepage. Part of the <tt>#default#homePage</tt> * default IE behavior implementation. * @param url the new homepage URL */ public void setHomePage(final String url) { getDomNodeOrDie().getPage().getEnclosingWindow().getWebClient().setHomePage(url); }
/** * Sets the web client's current homepage. Part of the <tt>#default#homePage</tt> * default IE behavior implementation. * @param url the new homepage URL */ public void setHomePage(final String url) { getDomNodeOrDie().getPage().getEnclosingWindow().getWebClient().setHomePage(url); }
/** * Sets the web client's current homepage. Part of the <tt>#default#homePage</tt> * default IE behavior implementation. * @param url the new homepage URL */ public void setHomePage(final String url) { getDomNodeOrDie().getPage().getEnclosingWindow().getWebClient().setHomePage(url); }
/** * Causes the web client to navigate to the current home page. Part of the * <tt>#default#homePage</tt> default IE behavior implementation. * @throws IOException if loading home page fails */ public void navigateHomePage() throws IOException { final WebClient webClient = getDomNodeOrDie().getPage().getEnclosingWindow().getWebClient(); webClient.getPage(webClient.getHomePage()); }
/** * Sets the web client's current homepage. Part of the <tt>#default#homePage</tt> * default IE behavior implementation. * @param url the new homepage URL */ public void setHomePage(final String url) { getDomNodeOrDie().getPage().getEnclosingWindow().getWebClient().getOptions().setHomePage(url); }
/** * Causes the web client to navigate to the current home page. Part of the * <tt>#default#homePage</tt> default IE behavior implementation. * @throws IOException if loading home page fails */ public void navigateHomePage() throws IOException { final WebClient webClient = getDomNodeOrDie().getPage().getEnclosingWindow().getWebClient(); webClient.getPage(webClient.getHomePage()); }
/** * Causes the web client to navigate to the current home page. Part of the * <tt>#default#homePage</tt> default IE behavior implementation. * @throws IOException if loading home page fails */ public void navigateHomePage() throws IOException { final WebClient webClient = getDomNodeOrDie().getPage().getEnclosingWindow().getWebClient(); webClient.getPage(webClient.getHomePage()); }
/** * Sets the web client's current homepage. Part of the <tt>#default#homePage</tt> * default IE behavior implementation. * @param url the new homepage URL */ public void setHomePage(final String url) { getDomNodeOrDie().getPage().getEnclosingWindow().getWebClient().getOptions().setHomePage(url); }
/** * Causes the web client to navigate to the current home page. Part of the * <tt>#default#homePage</tt> default IE behavior implementation. * @throws IOException if loading home page fails */ public void navigateHomePage() throws IOException { final WebClient webClient = getDomNodeOrDie().getPage().getEnclosingWindow().getWebClient(); webClient.getPage(webClient.getOptions().getHomePage()); }
/** * Causes the web client to navigate to the current home page. Part of the * <tt>#default#homePage</tt> default IE behavior implementation. * @throws IOException if loading home page fails */ public void navigateHomePage() throws IOException { final WebClient webClient = getDomNodeOrDie().getPage().getEnclosingWindow().getWebClient(); webClient.getPage(webClient.getOptions().getHomePage()); }