/** Creates an instance for a given frame. */ FrameWindow(final BaseFrame frame) { super(frame.getPage().getWebClient()); frame_ = frame; final WebWindowImpl parent = (WebWindowImpl) getParentWindow(); performRegistration(); parent.addChildWindow(this); }
/** * Returns the HTML page in which the <frame> or <iframe> tag is contained for this * frame window. This is a facility method for <code> * (HtmlPage) (getParentWindow().getEnclosedPage())</code>. * * @return the page in the parent window */ public HtmlPage getEnclosingPage() { return (HtmlPage) frame_.getPage(); }
/** {@inheritDoc} */ public WebWindow getParentWindow() { return frame_.getPage().getEnclosingWindow(); }