public enum FormFieldCopyStrategy extends java.lang.Enum<FormFieldCopyStrategy>
Enum Constant and Description |
---|
COPY
The elements are copied as-is to the target document.
|
COPY_AND_UPDATE_WIDGETS
Copy widgets that belong to form fields copied previously with
FieldNode.copy(com.pdf_tools.fourheights.pdftoolbox.pdf.Document, com.pdf_tools.fourheights.pdftoolbox.pdf.forms.FieldNode) . |
FLATTEN
The elements are removed but the visible representation is retained.
|
REMOVE
The elements are removed completely.
|
Modifier and Type | Method and Description |
---|---|
static FormFieldCopyStrategy |
fromValue(int value) |
int |
getValue() |
static FormFieldCopyStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FormFieldCopyStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FormFieldCopyStrategy COPY
public static final FormFieldCopyStrategy FLATTEN
public static final FormFieldCopyStrategy REMOVE
public static final FormFieldCopyStrategy COPY_AND_UPDATE_WIDGETS
FieldNode.copy(com.pdf_tools.fourheights.pdftoolbox.pdf.Document, com.pdf_tools.fourheights.pdftoolbox.pdf.forms.FieldNode)
.
Any changes made to copied form fields are reflected in the widgets.public static FormFieldCopyStrategy[] values()
for (FormFieldCopyStrategy c : FormFieldCopyStrategy.values()) System.out.println(c);
public static FormFieldCopyStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static FormFieldCopyStrategy fromValue(int value)
public int getValue()