java.lang.Object
org.xhtmlrenderer.simple.extend.NoReplacedElementFactory
- All Implemented Interfaces:
ReplacedElementFactory
@ParametersAreNonnullByDefault
public class NoReplacedElementFactory
extends Object
implements ReplacedElementFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) NOTE: Only block equivalent elements can be replaced.voidRemoves any reference toElemente.voidreset()Instructs theReplacedElementFactoryto discard any cached data (typically because a new page is about to be loaded).voidIdentifies 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.
-
Constructor Details
-
NoReplacedElementFactory
public NoReplacedElementFactory()
-
-
Method Details
-
createReplacedElement
@Nullable public ReplacedElement createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) Description copied from interface:ReplacedElementFactoryNOTE: Only block equivalent elements can be replaced.- Specified by:
createReplacedElementin interfaceReplacedElementFactorycssWidth- 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
-
remove
Description copied from interface:ReplacedElementFactoryRemoves any reference toElemente.- Specified by:
removein interfaceReplacedElementFactory
-
setFormSubmissionListener
Description copied from interface:ReplacedElementFactoryIdentifies 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.- Specified by:
setFormSubmissionListenerin interfaceReplacedElementFactory- Parameters:
listener- the listener instance to receive callbacks on form submission.
-
reset
public void reset()Description copied from interface:ReplacedElementFactoryInstructs theReplacedElementFactoryto discard any cached data (typically because a new page is about to be loaded).- Specified by:
resetin interfaceReplacedElementFactory
-