/** * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br> * * <p>Open a new web window and populate it with a page loaded by * {@link #getPage(WebWindow,WebRequest)}</p> * * @param opener the web window that initiated the request * @param target the name of the window to be opened (the name that will be passed into the * JavaScript <tt>open()</tt> method) * @param params any parameters * @param <P> the page type * @return the new page * @throws FailingHttpStatusCodeException if the server returns a failing status code AND the property * {@link WebClientOptions#setThrowExceptionOnFailingStatusCode(boolean)} is set to true. * @throws IOException if an IO problem occurs */ @SuppressWarnings("unchecked") public <P extends Page> P getPage(final WebWindow opener, final String target, final WebRequest params) throws FailingHttpStatusCodeException, IOException { return (P) getPage(openTargetWindow(opener, target, TARGET_SELF), params); }
/** * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br> * * <p>Open a new web window and populate it with a page loaded by * {@link #getPage(WebWindow,WebRequest)}</p> * * @param opener the web window that initiated the request * @param target the name of the window to be opened (the name that will be passed into the * JavaScript <tt>open()</tt> method) * @param params any parameters * @param <P> the page type * @return the new page * @throws FailingHttpStatusCodeException if the server returns a failing status code AND the property * {@link WebClientOptions#setThrowExceptionOnFailingStatusCode(boolean)} is set to true. * @throws IOException if an IO problem occurs */ @SuppressWarnings("unchecked") public <P extends Page> P getPage(final WebWindow opener, final String target, final WebRequest params) throws FailingHttpStatusCodeException, IOException { return (P) getPage(openTargetWindow(opener, target, TARGET_SELF), params); }
/** * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br/> * * <p>Open a new web window and populate it with a page loaded by * {@link #getPage(WebWindow,WebRequestSettings)}</p> * * @param opener the web window that initiated the request * @param target the name of the window to be opened (the name that will be passed into the * JavaScript <tt>open()</tt> method) * @param params any parameters * @param <P> the page type * @return the new page * @throws FailingHttpStatusCodeException if the server returns a failing status code AND the property * {@link #setThrowExceptionOnFailingStatusCode(boolean)} is set to true. * @throws IOException if an IO problem occurs */ @SuppressWarnings("unchecked") public <P extends Page> P getPage(final WebWindow opener, final String target, final WebRequestSettings params) throws FailingHttpStatusCodeException, IOException { return (P) getPage(openTargetWindow(opener, target, "_self"), params); }
/** * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br/> * * <p>Open a new web window and populate it with a page loaded by * {@link #getPage(WebWindow,WebRequestSettings)}</p> * * @param opener the web window that initiated the request * @param target the name of the window to be opened (the name that will be passed into the * JavaScript <tt>open()</tt> method) * @param params any parameters * @param <P> the page type * @return the new page * @throws FailingHttpStatusCodeException if the server returns a failing status code AND the property * {@link #setThrowExceptionOnFailingStatusCode(boolean)} is set to true. * @throws IOException if an IO problem occurs */ @SuppressWarnings("unchecked") public <P extends Page> P getPage(final WebWindow opener, final String target, final WebRequestSettings params) throws FailingHttpStatusCodeException, IOException { return (P) getPage(openTargetWindow(opener, target, "_self"), params); }
/** * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br/> * * <p>Open a new web window and populate it with a page loaded by * {@link #getPage(WebWindow,WebRequestSettings)}</p> * * @param opener the web window that initiated the request * @param target the name of the window to be opened (the name that will be passed into the * JavaScript <tt>open()</tt> method) * @param params any parameters * @param <P> the page type * @return the new page * @throws FailingHttpStatusCodeException if the server returns a failing status code AND the property * {@link #setThrowExceptionOnFailingStatusCode(boolean)} is set to true. * @throws IOException if an IO problem occurs */ @SuppressWarnings("unchecked") public <P extends Page> P getPage(final WebWindow opener, final String target, final WebRequestSettings params) throws FailingHttpStatusCodeException, IOException { return (P) getPage(openTargetWindow(opener, target, "_self"), params); }
final WebWindow win = openTargetWindow(loadJob.requestingWindow_, loadJob.target_, "_self"); if (loadJob.urlWithOnlyHashChange_ != null) { final HtmlPage page = (HtmlPage) loadJob.requestingWindow_.getEnclosedPage();
final WebWindow win = openTargetWindow(loadJob.requestingWindow_, loadJob.target_, "_self"); if (loadJob.urlWithOnlyHashChange_ != null) { final HtmlPage page = (HtmlPage) loadJob.requestingWindow_.getEnclosedPage();
target = page.getResolvedTarget(getTargetAttribute()); final WebWindow win = page.getWebClient().openTargetWindow(page.getEnclosingWindow(), target, "_self"); Page enclosedPage = win.getEnclosedPage(); if (enclosedPage == null) {
final WebWindow window = openTargetWindow(opener, windowName, TARGET_BLANK); final HtmlPage openerPage = (HtmlPage) opener.getEnclosedPage(); if (url != null) {
target = page.getResolvedTarget(getTargetAttribute()); final WebWindow win = page.getWebClient().openTargetWindow(page.getEnclosingWindow(), target, "_self"); Page enclosedPage = win.getEnclosedPage(); if (enclosedPage == null) {
final WebWindow window = openTargetWindow(opener, windowName, TARGET_BLANK); final HtmlPage openerPage = (HtmlPage) opener.getEnclosedPage(); if (url != null) {
final WebWindow window = openTargetWindow(opener, windowName, "_blank"); final HtmlPage openerPage = (HtmlPage) opener.getEnclosedPage(); if (url != null) {
final WebWindow window = openTargetWindow(opener, windowName, "_blank"); final HtmlPage openerPage = (HtmlPage) opener.getEnclosedPage(); if (url != null) {
final WebWindow window = openTargetWindow(opener, windowName, "_blank"); final HtmlPage openerPage = (HtmlPage) opener.getEnclosedPage(); if (url != null) {