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,
setCurrentParagraphCoordinates
public void commitChanges(org.docx4j.openpackaging.packages.WordprocessingMLPackage document)
ICommentProcessor
commitChanges
in
interface ICommentProcessor
document
- The word document that can be manipulated by using the
DOCX4J api.
public void displayParagraphIf(Boolean condition)
IDisplayIfProcessor
displayParagraphIf
in
interface IDisplayIfProcessor
condition
- 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)
IDisplayIfProcessor
displayTableIf
in
interface IDisplayIfProcessor
condition
- 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)
IDisplayIfProcessor
displayTableRowIf
in
interface IDisplayIfProcessor
condition
- 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 © 2016. All rights reserved.