public abstract class PDField extends PDDictionaryWrapper
| Modifier and Type | Method and Description |
|---|---|
PDAcroForm |
getAcroForm()
This will get the acroform that this field is part of.
|
PDFormFieldAdditionalActions |
getActions()
Get the additional actions for this field.
|
String |
getAlternateFieldName()
Gets the alternate name of the field ("shall be used in place of the actual field name wherever the field shall
be identified in the user interface (such as in error or status messages referring to the field)").
|
abstract int |
getFieldFlags()
This will get the flags for this field.
|
abstract String |
getFieldType()
Get the FT entry of the field.
|
String |
getFullyQualifiedName()
Returns the fully qualified name of the field, which is a concatenation of the names of all the parents fields.
|
protected COSBase |
getInheritableAttribute(COSName key)
Returns the given attribute, inheriting from parent nodes if necessary.
|
String |
getMappingName()
Gets the mapping name of the field.
|
PDNonTerminalField |
getParent()
Get the parent field to this field, or null if none exists.
|
String |
getPartialName()
Returns the partial name of the field.
|
abstract String |
getValueAsString()
Returns a string representation of the "V" entry, or an empty string.
|
abstract List<PDAnnotationWidget> |
getWidgets()
Returns the widget annotations associated with this field.
|
boolean |
isNoExport() |
boolean |
isReadonly() |
boolean |
isRequired() |
abstract boolean |
isTerminal() |
void |
setAlternateFieldName(String alternateFieldName)
This will set the alternate name of the field ("shall be used in place of the actual field name wherever the
field shall be identified in the user interface (such as in error or status messages referring to the field)").
|
void |
setFieldFlags(int flags)
This will set the flags for this field.
|
void |
setMappingName(String mappingName)
This will set the mapping name of the field.
|
void |
setNoExport(boolean noExport)
sets the field to be not exported.
|
void |
setPartialName(String name)
This will set the partial name of the field.
|
void |
setReadonly(boolean readonly)
sets the field to be read-only.
|
void |
setRequired(boolean required)
sets the field to be required.
|
abstract void |
setValue(String value)
Sets the value of the field.
|
String |
toString() |
equals, getCOSObject, hashCodeprotected COSBase getInheritableAttribute(COSName key)
key - the key to look uppublic abstract String getFieldType()
public abstract String getValueAsString()
public abstract void setValue(String value) throws IOException
value - the new field value.IOException - if the value could not be setpublic abstract List<PDAnnotationWidget> getWidgets()
PDNonTerminalField the list will be empty as non terminal fields have no visual representation in the
form.public void setReadonly(boolean readonly)
readonly - The new flag for readonly.public boolean isReadonly()
public void setRequired(boolean required)
required - The new flag for required.public boolean isRequired()
public void setNoExport(boolean noExport)
noExport - The new flag for noExport.public boolean isNoExport()
public abstract int getFieldFlags()
public void setFieldFlags(int flags)
flags - The new flags.public PDFormFieldAdditionalActions getActions()
public PDNonTerminalField getParent()
public PDAcroForm getAcroForm()
public String getPartialName()
public void setPartialName(String name)
name - The new name for the field.public String getFullyQualifiedName()
public String getAlternateFieldName()
public void setAlternateFieldName(String alternateFieldName)
alternateFieldName - the alternate name of the fieldpublic String getMappingName()
public void setMappingName(String mappingName)
mappingName - the mapping name of the fieldpublic abstract boolean isTerminal()
Copyright © 2020 sejda. All rights reserved.