Package org.xhtmlrenderer.extend
Interface ReplacedElementFactory
- All Known Implementing Classes:
DelegatingReplacedElementFactory
,ITextReplacedElementFactory
,SwingReplacedElementFactory
public interface ReplacedElementFactory
-
Method Summary
Modifier and TypeMethodDescriptioncreateReplacedElement
(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) NOTE: Only block equivalent elements can be replaced.void
Removes any reference toElement
e
.void
reset()
Instructs theReplacedElementFactory
to discard any cached data (typically because a new page is about to be loaded).void
Identifies the FSL which will be used for callbacks when a form submit action is executed; you can use aDefaultFormSubmissionListener
if you don't want any action to be taken.
-
Method Details
-
createReplacedElement
ReplacedElement createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) NOTE: Only block equivalent elements can be replaced.- Parameters:
cssWidth
- The CSS width of the element in dots (or-1
if width isauto
)cssHeight
- The CSS height of the element in dots (or-1
if the height should be treated asauto
)- Returns:
- The
ReplacedElement
ornull
if noReplacedElement
applies
-
reset
void reset()Instructs theReplacedElementFactory
to discard any cached data (typically because a new page is about to be loaded). -
remove
Removes any reference toElement
e
.- Parameters:
e
-
-
setFormSubmissionListener
Identifies the FSL which will be used for callbacks when a form submit action is executed; you can use aDefaultFormSubmissionListener
if you don't want any action to be taken.- Parameters:
listener
- the listener instance to receive callbacks on form submission.
-