Package org.xhtmlrenderer.pdf
Class ITextReplacedElementFactory
java.lang.Object
org.xhtmlrenderer.pdf.ITextReplacedElementFactory
- All Implemented Interfaces:
ReplacedElementFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ITextOutputDevice
private final Map<Element,
RadioButtonFormField> private final Map<String,
List<RadioButtonFormField>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable ReplacedElement
createReplacedElement
(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) NOTE: Only block equivalent elements can be replaced.@Nullable List<RadioButtonFormField>
getRadioButtons
(String name) void
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).private void
saveResult
(Element e, RadioButtonFormField result) 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.
-
Field Details
-
_outputDevice
-
_radioButtonsByElem
-
_radioButtonsByName
-
-
Constructor Details
-
ITextReplacedElementFactory
-
-
Method Details
-
createReplacedElement
public @Nullable ReplacedElement createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) Description copied from interface:ReplacedElementFactory
NOTE: Only block equivalent elements can be replaced.- Specified by:
createReplacedElement
in interfaceReplacedElementFactory
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
-
saveResult
-
reset
public void reset()Description copied from interface:ReplacedElementFactory
Instructs theReplacedElementFactory
to discard any cached data (typically because a new page is about to be loaded).- Specified by:
reset
in interfaceReplacedElementFactory
-
remove
Description copied from interface:ReplacedElementFactory
Removes any reference toElement
e
.- Specified by:
remove
in interfaceReplacedElementFactory
-
remove
-
getRadioButtons
-
setFormSubmissionListener
Description copied from interface:ReplacedElementFactory
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.- Specified by:
setFormSubmissionListener
in interfaceReplacedElementFactory
- Parameters:
listener
- the listener instance to receive callbacks on form submission.
-