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, 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()
public void setChildren(List<PDField> children)
children
- The list of child fields.public String getFieldType()
PDField
getFieldType
in class PDField
public COSBase getValue()
public String getValueAsString()
PDField
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.
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.
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.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.