public void goBack() { if (index > 0) { --index; window.setEnclosedPage(history.get(index)); } }
public void goForward() { if (index < history.size() - 1) { ++index; window.setEnclosedPage(history.get(index)); } } }
/** * Creates a JavaScriptPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the JavaScriptPage in * @return the newly created JavaScriptPage */ protected JavaScriptPage createJavaScriptPage(final WebResponse webResponse, final WebWindow webWindow) { final JavaScriptPage newPage = new JavaScriptPage(webResponse, webWindow); webWindow.setEnclosedPage(newPage); return newPage; }
/** * Creates an UnexpectedPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the UnexpectedPage in * @return the newly created UnexpectedPage */ protected UnexpectedPage createUnexpectedPage(final WebResponse webResponse, final WebWindow webWindow) { final UnexpectedPage newPage = new UnexpectedPage(webResponse, webWindow); webWindow.setEnclosedPage(newPage); return newPage; }
/** * Creates a TextPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the TextPage in * @return the newly created TextPage */ protected TextPage createTextPage(final WebResponse webResponse, final WebWindow webWindow) { final TextPage newPage = new TextPage(webResponse, webWindow); webWindow.setEnclosedPage(newPage); return newPage; }
/** * Creates an UnexpectedPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the UnexpectedPage in * @return the newly created UnexpectedPage */ protected UnexpectedPage createUnexpectedPage(final WebResponse webResponse, final WebWindow webWindow) { final UnexpectedPage newPage = new UnexpectedPage(webResponse, webWindow); webWindow.setEnclosedPage(newPage); return newPage; }
/** * Creates an XmlPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the TextPage in * @return the newly created TextPage * @throws IOException if the page could not be created */ protected XmlPage createXmlPage(final WebResponse webResponse, final WebWindow webWindow) throws IOException { final XmlPage newPage = new XmlPage(webResponse, webWindow); webWindow.setEnclosedPage(newPage); return newPage; }
/** * Creates an SgmlPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the TextPage in * @return the newly created TextPage * @throws IOException if the page could not be created */ protected SgmlPage createXmlPage(final WebResponse webResponse, final WebWindow webWindow) throws IOException { final SgmlPage page = new XmlPage(webResponse, webWindow); webWindow.setEnclosedPage(page); return page; }
/** * Creates a JavaScriptPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the JavaScriptPage in * @return the newly created JavaScriptPage */ protected JavaScriptPage createJavaScriptPage(final WebResponse webResponse, final WebWindow webWindow) { final JavaScriptPage newPage = new JavaScriptPage(webResponse, webWindow); webWindow.setEnclosedPage(newPage); return newPage; }
/** * Creates a JavaScriptPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the JavaScriptPage in * @return the newly created JavaScriptPage */ protected JavaScriptPage createJavaScriptPage(final WebResponse webResponse, final WebWindow webWindow) { final JavaScriptPage newPage = new JavaScriptPage(webResponse, webWindow); webWindow.setEnclosedPage(newPage); return newPage; }
/** * Creates a TextPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the TextPage in * @return the newly created TextPage */ protected TextPage createTextPage(final WebResponse webResponse, final WebWindow webWindow) { final TextPage newPage = new TextPage(webResponse, webWindow); webWindow.setEnclosedPage(newPage); return newPage; }
/** * Creates an UnexpectedPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the UnexpectedPage in * @return the newly created UnexpectedPage */ protected UnexpectedPage createUnexpectedPage(final WebResponse webResponse, final WebWindow webWindow) { final UnexpectedPage newPage = new UnexpectedPage(webResponse, webWindow); webWindow.setEnclosedPage(newPage); return newPage; }
/** * Creates a TextPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the TextPage in * @return the newly created TextPage */ protected TextPage createTextPage(final WebResponse webResponse, final WebWindow webWindow) { final TextPage newPage = new TextPage(webResponse, webWindow); webWindow.setEnclosedPage(newPage); return newPage; }
/** * Creates an UnexpectedPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the UnexpectedPage in * @return the newly created UnexpectedPage */ protected UnexpectedPage createUnexpectedPage(final WebResponse webResponse, final WebWindow webWindow) { final UnexpectedPage newPage = new UnexpectedPage(webResponse, webWindow); webWindow.setEnclosedPage(newPage); return newPage; }
/** * Creates a TextPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the TextPage in * @return the newly created TextPage */ protected TextPage createTextPage(final WebResponse webResponse, final WebWindow webWindow) { final TextPage newPage = new TextPage(webResponse, webWindow); webWindow.setEnclosedPage(newPage); return newPage; }
/** * Creates an UnexpectedPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the UnexpectedPage in * @return the newly created UnexpectedPage */ protected UnexpectedPage createUnexpectedPage(final WebResponse webResponse, final WebWindow webWindow) { final UnexpectedPage newPage = new UnexpectedPage(webResponse, webWindow); webWindow.setEnclosedPage(newPage); return newPage; }
/** * Creates a TextPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the TextPage in * @return the newly created TextPage */ protected TextPage createTextPage(final WebResponse webResponse, final WebWindow webWindow) { final TextPage newPage = new TextPage(webResponse, webWindow); webWindow.setEnclosedPage(newPage); return newPage; }
/** * Creates an XmlPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the TextPage in * @return the newly created TextPage * @throws IOException if the page could not be created */ protected XmlPage createXmlPage(final WebResponse webResponse, final WebWindow webWindow) throws IOException { final XmlPage newPage = new XmlPage(webResponse, webWindow); webWindow.setEnclosedPage(newPage); return newPage; }
/** * Creates an XmlPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the TextPage in * @return the newly created TextPage * @throws IOException if the page could not be created */ protected XmlPage createXmlPage(final WebResponse webResponse, final WebWindow webWindow) throws IOException { final XmlPage newPage = new XmlPage(webResponse, webWindow); webWindow.setEnclosedPage(newPage); return newPage; }
/** * Creates an SgmlPage for this WebResponse. * * @param webResponse the page's source * @param webWindow the WebWindow to place the TextPage in * @return the newly created TextPage * @throws IOException if the page could not be created */ protected SgmlPage createXmlPage(final WebResponse webResponse, final WebWindow webWindow) throws IOException { final SgmlPage page = new XmlPage(webResponse, webWindow); webWindow.setEnclosedPage(page); return page; }