public class PDNonTerminalField extends PDField
| Constructor and Description |
|---|
PDNonTerminalField(PDAcroForm acroForm)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(PDField field)
Adds a child to the array of children
|
List<PDField> |
getChildren() |
COSBase |
getDefaultValue()
Returns the default value of this field.
|
int |
getFieldFlags()
This will get the flags for this field.
|
String |
getFieldType()
Note: while non-terminal fields do inherit field values, this method returns the local value,
without inheritance.
|
COSBase |
getValue()
Note: while non-terminal fields do inherit field values, this method returns the local value,
without inheritance.
|
String |
getValueAsString()
Note: while non-terminal fields do inherit field values, this method returns the local value,
without inheritance.
|
List<PDAnnotationWidget> |
getWidgets()
Returns the widget annotations associated with this field.
|
boolean |
hasChildren() |
boolean |
isTerminal() |
COSBase |
removeChild(PDField field)
Removes the given node from the children list
|
void |
setChildren(List<PDField> children)
Sets the child fields.
|
void |
setDefaultValue(COSBase value)
Sets the default of this field.
|
void |
setValue(COSBase object)
Sets the value of this field.
|
void |
setValue(String value)
Sets the plain text value of this field.
|
getAcroForm, getActions, getAlternateFieldName, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, isNoExport, isReadonly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadonly, setRequired, toStringequals, getCOSObject, hashCodepublic PDNonTerminalField(PDAcroForm acroForm)
acroForm - The form that this field is part of.public int getFieldFlags()
PDFieldgetFieldFlags in class PDFieldpublic List<PDField> getChildren()
public boolean hasChildren()
public void setChildren(List<PDField> children)
children - The list of child fields.public void addChild(PDField field)
field - public COSBase removeChild(PDField field)
field - public String getFieldType()
Note: while non-terminal fields do inherit field values, this method returns the local value, without inheritance.
getFieldType in class PDFieldpublic COSBase getValue()
Note: while non-terminal fields do inherit field values, this method returns the local value, without inheritance.
public String getValueAsString()
Note: while non-terminal fields do inherit field values, this method returns the local value, without inheritance.
getValueAsString in class PDFieldpublic void setValue(COSBase object)
Note: while non-terminal fields do inherit field values, this method returns the local value, without inheritance.
public void setValue(String value)
setValue in class PDFieldvalue - Plain textIOException - if the value could not be setpublic COSBase getDefaultValue()
Note: while non-terminal fields do inherit field values, this method returns the local value, without inheritance.
public void setDefaultValue(COSBase value)
Note: while non-terminal fields do inherit field values, this method returns the local value, without inheritance.
public List<PDAnnotationWidget> getWidgets()
PDFieldPDNonTerminalField the list will be empty as non terminal fields have no visual representation in the
form.getWidgets in class PDFieldpublic boolean isTerminal()
isTerminal in class PDFieldCopyright © 2019 sejda. All rights reserved.