public class DisplayIfProcessor extends BaseCommentProcessor implements IDisplayIfProcessor
| Constructor and Description |
|---|
DisplayIfProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
commitChanges(org.docx4j.openpackaging.packages.WordprocessingMLPackage document)
This method is called after all comments in the .docx template have been passed to the comment processor.
|
void |
displayParagraphIf(java.lang.Boolean condition)
May be called to delete the commented paragraph or not, depending on the given boolean condition.
|
void |
displayTableIf(java.lang.Boolean condition)
May be called to delete the table surrounding the commented paragraph, depending on the given boolean condition.
|
void |
displayTableRowIf(java.lang.Boolean condition)
May be called to delete the table surrounding the commented paragraph, depending on the given boolean condition.
|
void |
reset()
Resets all state in the comment processor so that it can be re-used in another stamping process.
|
getCurrentParagraphCoordinates, getCurrentRunCoordinates, setCurrentParagraphCoordinates, setCurrentRunCoordinatespublic void commitChanges(org.docx4j.openpackaging.packages.WordprocessingMLPackage document)
ICommentProcessorcommitChanges in interface ICommentProcessordocument - The word document that can be manipulated by using the DOCX4J api.public void reset()
ICommentProcessorreset in interface ICommentProcessorpublic void displayParagraphIf(java.lang.Boolean condition)
IDisplayIfProcessordisplayParagraphIf in interface IDisplayIfProcessorcondition - if true, the commented paragraph will remain in the document. If false, the commented paragraph
will be deleted at stamping.public void displayTableIf(java.lang.Boolean condition)
IDisplayIfProcessordisplayTableIf in interface IDisplayIfProcessorcondition - if true, the table surrounding the commented paragraph will remain in the document. If false, the table
will be deleted at stamping.public void displayTableRowIf(java.lang.Boolean condition)
IDisplayIfProcessordisplayTableRowIf in interface IDisplayIfProcessorcondition - if true, the table row surrounding the commented paragraph will remain in the document. If false, the table row
will be deleted at stamping.Copyright © 2017. All rights reserved.