public class PDNonTerminalField extends PDField
Constructor and Description |
---|
PDNonTerminalField(PDAcroForm acroForm)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<PDField> |
getChildren()
Returns this field's children.
|
COSBase |
getDefaultValue()
Returns the default value of this field.
|
int |
getFieldFlags()
This will get the flags for this field.
|
String |
getFieldType()
Get the FT entry of the field.
|
COSBase |
getValue()
Get the field value.
|
String |
getValueAsString()
Returns a string representation of the "V" entry, or an empty string.
|
List<PDAnnotationWidget> |
getWidgets()
Returns the widget annotations associated with this field.
|
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, getCOSObject, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, isNoExport, isReadOnly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadOnly, setRequired, toString
public PDNonTerminalField(PDAcroForm acroForm)
acroForm
- The form that this field is part of.public int getFieldFlags()
PDField
getFieldFlags
in class PDField
public List<PDField> getChildren()
setChildren()
with the modified list.public void setChildren(List<PDField> children)
children
- The list of child fields.public String getFieldType()
Note: while non-terminal fields do inherit field values, this method returns the local value, without inheritance.
getFieldType
in class PDField
public 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 PDField
public void setValue(COSBase object) throws IOException
Note: while non-terminal fields do inherit field values, this method returns the local value, without inheritance.
object
- IOException
public void setValue(String value) throws IOException
setValue
in class PDField
value
- 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.
value
- public List<PDAnnotationWidget> getWidgets()
PDField
PDNonTerminalField
the list will be empty as non terminal fields
have no visual representation in the form.getWidgets
in class PDField
PDAnnotationWidget
annotations. Be aware that this list is
not backed by the actual widget collection of the field, so adding or deleting has no
effect on the PDF document. For PDTerminalField
you'd have to call
setWidgets()
with the modified list.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.