@Override public ReplacedElement createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) { for (ReplacedElementFactory replacedElementFactory : this.replacedElementFactories) { ReplacedElement element = replacedElementFactory.createReplacedElement(c, box, uac, cssWidth, cssHeight); if (element != null) { return element; } } return null; }
@Override public void remove(Element e) { for (ReplacedElementFactory replacedElementFactory : this.replacedElementFactories) { replacedElementFactory.remove(e); } }
public void reset() { styleMap = null; idMap = null; replacedElementFactory.reset(); }
@Override public void setFormSubmissionListener(FormSubmissionListener listener) { for (ReplacedElementFactory replacedElementFactory : this.replacedElementFactories) { replacedElementFactory.setFormSubmissionListener(listener); } }
@Override public void setFormSubmissionListener(FormSubmissionListener listener) { for(ReplacedElementFactory replacedElementFactory : replacedElementFactories) { replacedElementFactory.setFormSubmissionListener(listener); } } }
public void reset() { styleMap = null; idMap = null; replacedElementFactory.reset(); }
@Override public ReplacedElement createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) { for(ReplacedElementFactory replacedElementFactory : replacedElementFactories) { ReplacedElement element = replacedElementFactory.createReplacedElement(c, box, uac, cssWidth, cssHeight); if(element != null) { return element; } } return null; }
@Override public void remove(Element e) { for(ReplacedElementFactory replacedElementFactory : replacedElementFactories) { replacedElementFactory.remove(e); } }
public void setFormSubmissionListener(FormSubmissionListener fsl) { replacedElementFactory.setFormSubmissionListener(fsl); }
@Override public void reset() { for (ReplacedElementFactory replacedElementFactory : this.replacedElementFactories) { replacedElementFactory.reset(); } }
} else { int height = getCSSHeight(c); ReplacedElement re = c.getReplacedElementFactory().createReplacedElement( c, this, c.getUac(), width, height); if (re != null) {
public void removeElementReferences(Element e) { String id = namespaceHandler.getID(e); if (id != null && id.length() > 0) { removeBoxId(id); } if (styleMap != null) { styleMap.remove(e); } getCss().removeStyle(e); getReplacedElementFactory().remove(e); if (e.hasChildNodes()) { NodeList children = e.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = children.item(i); if (child.getNodeType() == Node.ELEMENT_NODE) { removeElementReferences((Element)child); } } } } }
public void setFormSubmissionListener(FormSubmissionListener fsl) { replacedElementFactory.setFormSubmissionListener(fsl); }
@Override public void reset() { for(ReplacedElementFactory replacedElementFactory : replacedElementFactories) { replacedElementFactory.reset(); } }
} else { int height = getCSSHeight(c); ReplacedElement re = c.getReplacedElementFactory().createReplacedElement( c, this, c.getUac(), width, height); if (re != null) {
public void removeElementReferences(Element e) { String id = namespaceHandler.getID(e); if (id != null && id.length() > 0) { removeBoxId(id); } if (styleMap != null) { styleMap.remove(e); } getCss().removeStyle(e); getReplacedElementFactory().remove(e); if (e.hasChildNodes()) { NodeList children = e.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = children.item(i); if (child.getNodeType() == Node.ELEMENT_NODE) { removeElementReferences((Element)child); } } } } }
public void setReplacedElementFactory(ReplacedElementFactory ref) { if (ref == null) { throw new NullPointerException("replacedElementFactory may not be null"); } if (this.replacedElementFactory != null) { this.replacedElementFactory.reset(); } this.replacedElementFactory = ref; }
re = c.getReplacedElementFactory().createReplacedElement( c, this, c.getUac(), cssWidth, cssHeight);
public void setReplacedElementFactory(ReplacedElementFactory ref) { if (ref == null) { throw new NullPointerException("replacedElementFactory may not be null"); } if (this.replacedElementFactory != null) { this.replacedElementFactory.reset(); } this.replacedElementFactory = ref; }
re = c.getReplacedElementFactory().createReplacedElement( c, this, c.getUac(), cssWidth, cssHeight);