Пример #1
0
 /** 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);
 }
Пример #2
0
 /**
  * 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();
 }
Пример #3
0
 /** {@inheritDoc} */
 public WebWindow getParentWindow() {
   return frame_.getPage().getEnclosingWindow();
 }