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() |
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, toStringpublic PDNonTerminalField(PDAcroForm acroForm)
acroForm - The form that this field is part of.public int getFieldFlags()
PDFieldgetFieldFlags in class PDFieldpublic List<PDField> getChildren()
public void setChildren(List<PDField> children)
children - The list of child fields.public String getFieldType()
PDFieldgetFieldType in class PDFieldpublic COSBase getValue()
public String getValueAsString()
PDFieldgetValueAsString in class PDFieldpublic void setValue(COSBase object) throws IOException
Note: while non-terminal fields do inherit field values, this method returns the local value, without inheritance.
IOExceptionpublic void setValue(String value) throws IOException
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 PDFieldPDAnnotationWidget annotations.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.