element.setParent(parent); element.setAttributes(new AttributeList(attributes)); element.setPrefixMapping(_prefixMapping);
/** * JavaScript constructor. This must be declared in every JavaScript file because * the Rhino engine won't walk up the hierarchy looking for constructors. */ public void jsConstructor() { instantiatedViaJavaScript_ = true; final SgmlPage page = (SgmlPage) getWindow().getWebWindow().getEnclosedPage(); final HtmlElement fake = HTMLParser.getFactory(TAG_NAME).createElement(page, TAG_NAME, new AttributeList()); setDomNode(fake); }
/** * JavaScript constructor. This must be declared in every JavaScript file because * the Rhino engine won't walk up the hierarchy looking for constructors. */ public void jsConstructor() { instantiatedViaJavaScript_ = true; final SgmlPage page = (SgmlPage) getWindow().getWebWindow().getEnclosedPage(); final HtmlElement fake = HTMLParser.getFactory(TAG_NAME).createElement(page, TAG_NAME, new AttributeList()); setDomNode(fake); }
/** * JavaScript constructor. This must be declared in every JavaScript file because * the Rhino engine won't walk up the hierarchy looking for constructors. */ public void jsConstructor() { instantiatedViaJavaScript_ = true; final SgmlPage page = (SgmlPage) getWindow().getWebWindow().getEnclosedPage(); final HtmlElement fake = HTMLParser.getFactory(TAG_NAME).createElement(page, TAG_NAME, new AttributeList()); setDomNode(fake); }
element.setParent(parent); element.setAttributes(new AttributeList(attributes)); element.setPrefixMapping(_prefixMapping);
element.setParent(parent); element.setAttributes(new AttributeList(attributes)); element.setPrefixMapping(_prefixMapping);
element.setParent(parent); element.setAttributes(new AttributeList(attributes)); element.setPrefixMapping(_prefixMapping);