/** * Creates a new {@link WebWindow} for the new clone. * {@inheritDoc} */ @Override public DomNode cloneNode(final boolean deep) { final BaseFrameElement clone = (BaseFrameElement) super.cloneNode(deep); clone.init(); return clone; }
/** * Creates a new {@link WebWindow} for the new clone. * {@inheritDoc} */ @Override public DomNode cloneNode(final boolean deep) { final BaseFrameElement clone = (BaseFrameElement) super.cloneNode(deep); clone.init(); return clone; }
/** * Creates an instance of BaseFrame. * * @param qualifiedName the qualified name of the element type to instantiate * @param page the HtmlPage that contains this element * @param attributes the initial attributes */ protected BaseFrameElement(final String qualifiedName, final SgmlPage page, final Map<String, DomAttr> attributes) { super(qualifiedName, page, attributes); init(); if (null != page && page.isHtmlPage() && ((HtmlPage) page).isParsingHtmlSnippet()) { // if created by the HTMLParser the src attribute is not set via setAttribute() or some other method but is // part of the given attributes already. final String src = getSrcAttribute(); if (src != ATTRIBUTE_NOT_DEFINED && !WebClient.ABOUT_BLANK.equals(src)) { loadSrcWhenAddedToPage_ = true; } } }
/** * Creates an instance of BaseFrame. * * @param qualifiedName the qualified name of the element type to instantiate * @param page the HtmlPage that contains this element * @param attributes the initial attributes */ protected BaseFrameElement(final String qualifiedName, final SgmlPage page, final Map<String, DomAttr> attributes) { super(qualifiedName, page, attributes); init(); if (null != page && page.isHtmlPage() && ((HtmlPage) page).isParsingHtmlSnippet()) { // if created by the HTMLParser the src attribute is not set via setAttribute() or some other method but is // part of the given attributes already. final String src = getSrcAttribute(); if (src != ATTRIBUTE_NOT_DEFINED && !WebClient.ABOUT_BLANK.equals(src)) { loadSrcWhenAddedToPage_ = true; } } }