public class DelegatingReplacedElementFactory extends Object implements ReplacedElementFactory
| Constructor and Description |
|---|
DelegatingReplacedElementFactory() |
| Modifier and Type | Method and Description |
|---|---|
ElementReplacer |
addReplacer(ElementReplacer replacer) |
ReplacedElement |
createReplacedElement(LayoutContext context,
BlockBox box,
UserAgentCallback uac,
int cssWidth,
int cssHeight)
NOTE: Only block equivalent elements can be replaced.
|
void |
remove(Element element)
Removes any reference to
Element e. |
void |
removeReplacer(ElementReplacer replacer) |
void |
reset()
Instructs the
ReplacedElementFactory to discard any cached
data (typically because a new page is about to be loaded). |
void |
setFormSubmissionListener(FormSubmissionListener listener) |
public ReplacedElement createReplacedElement(LayoutContext context, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)
ReplacedElementFactorycreateReplacedElement in interface ReplacedElementFactorycssWidth - The CSS width of the element in dots (or -1 if
width is auto)cssHeight - The CSS height of the element in dots (or -1
if the height should be treated as auto)ReplacedElement or null if no
ReplacedElement appliespublic void reset()
ReplacedElementFactoryReplacedElementFactory to discard any cached
data (typically because a new page is about to be loaded).reset in interface ReplacedElementFactorypublic void remove(Element element)
ReplacedElementFactoryElement e.remove in interface ReplacedElementFactorypublic ElementReplacer addReplacer(ElementReplacer replacer)
public void removeReplacer(ElementReplacer replacer)
public void setFormSubmissionListener(FormSubmissionListener listener)
Copyright © 2018. All rights reserved.