public class NoReplacedElementFactory extends Object implements ReplacedElementFactory
Constructor and Description |
---|
NoReplacedElementFactory() |
Modifier and Type | Method and Description |
---|---|
ReplacedElement |
createReplacedElement(LayoutContext c,
BlockBox box,
UserAgentCallback uac,
int cssWidth,
int cssHeight)
NOTE: Only block equivalent elements can be replaced.
|
void |
remove(Element e)
Removes any reference to
Element e . |
void |
reset()
Instructs the
ReplacedElementFactory to discard any cached
data (typically because a new page is about to be loaded). |
void |
setFormSubmissionListener(FormSubmissionListener listener)
Identifies the FSL which will be used for callbacks when a form submit action is executed; you can use a
DefaultFormSubmissionListener if you don't want any action to be taken. |
public ReplacedElement createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)
ReplacedElementFactory
createReplacedElement
in interface ReplacedElementFactory
cssWidth
- 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 remove(Element e)
ReplacedElementFactory
Element
e
.remove
in interface ReplacedElementFactory
public void setFormSubmissionListener(FormSubmissionListener listener)
ReplacedElementFactory
DefaultFormSubmissionListener
if you don't want any action to be taken.setFormSubmissionListener
in interface ReplacedElementFactory
listener
- the listener instance to receive callbacks on form submission.public void reset()
ReplacedElementFactory
ReplacedElementFactory
to discard any cached
data (typically because a new page is about to be loaded).reset
in interface ReplacedElementFactory
Copyright © 2017. All rights reserved.