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(Boolean condition)
May be called to delete the commented paragraph or not, depending on the given boolean condition.
|
void |
displayTableIf(Boolean condition)
May be called to delete the table surrounding the commented paragraph, depending on the given boolean condition.
|
void |
displayTableRowIf(Boolean condition)
May be called to delete the table surrounding the commented paragraph, depending on the given boolean condition.
|
getCurrentParagraphCoordinates, setCurrentParagraphCoordinatespublic 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 displayParagraphIf(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(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(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.