Package org.xhtmlrenderer.extend
Interface ReplacedElementFactory
-
- All Known Implementing Classes:
DelegatingReplacedElementFactory,NoReplacedElementFactory,SwingReplacedElementFactory
public interface ReplacedElementFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReplacedElementcreateReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)NOTE: Only block equivalent elements can be replaced.voidremove(Element e)Removes any reference toElemente.voidreset()Instructs theReplacedElementFactoryto discard any cached data (typically because a new page is about to be loaded).voidsetFormSubmissionListener(FormSubmissionListener listener)Identifies the FSL which will be used for callbacks when a form submit action is executed; you can use aDefaultFormSubmissionListenerif you don't want any action to be taken.
-
-
-
Method Detail
-
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-1if width isauto)cssHeight- The CSS height of the element in dots (or-1if the height should be treated asauto)- Returns:
- The
ReplacedElementornullif noReplacedElementapplies
-
reset
void reset()
Instructs theReplacedElementFactoryto discard any cached data (typically because a new page is about to be loaded).
-
remove
void remove(Element e)
Removes any reference toElemente.
-
setFormSubmissionListener
void setFormSubmissionListener(FormSubmissionListener listener)
Identifies the FSL which will be used for callbacks when a form submit action is executed; you can use aDefaultFormSubmissionListenerif you don't want any action to be taken.- Parameters:
listener- the listener instance to receive callbacks on form submission.
-
-