Class PDPushButton
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.interactive.form.PDField
-
- com.tom_roush.pdfbox.pdmodel.interactive.form.PDTerminalField
-
- com.tom_roush.pdfbox.pdmodel.interactive.form.PDButton
-
- com.tom_roush.pdfbox.pdmodel.interactive.form.PDPushButton
-
- All Implemented Interfaces:
COSObjectable
public class PDPushButton extends PDButton
A pushbutton is a purely interactive control that responds immediately to user input without retaining a permanent value.
-
-
Field Summary
-
Fields inherited from class com.tom_roush.pdfbox.pdmodel.interactive.form.PDField
acroForm, dictionary, parent
-
-
Constructor Summary
Constructors Constructor Description PDPushButton(PDAcroForm acroForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getExportValues()This will get the export values.StringgetValueAsString()Returns a string representation of the "V" entry, or an empty string.voidsetExportValues(List<String> values)This will set the export values.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class com.tom_roush.pdfbox.pdmodel.interactive.form.PDButton
isPushButton, isRadioButton, setPushButton, setRadioButton
-
Methods inherited from class com.tom_roush.pdfbox.pdmodel.interactive.form.PDField
getAcroForm, getActions, getAlternateFieldName, getCOSObject, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, isNoExport, isReadOnly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadOnly, setRequired, toString
-
Methods inherited from class com.tom_roush.pdfbox.pdmodel.interactive.form.PDTerminalField
applyChange, getFieldFlags, getFieldType, getWidget, getWidgets, importFDF, setActions, setWidgets
-
-
-
-
Constructor Detail
-
PDPushButton
public PDPushButton(PDAcroForm acroForm)
- Parameters:
acroForm- The acroform.- See Also:
PDField#PDfield(PDAcroForm)
-
-
Method Detail
-
getExportValues
public List<String> getExportValues()
Description copied from class:PDButtonThis will get the export values.The export values are defined in the field dictionaries /Opt key.
The option values are used to define the export values for the field to
- hold values in non-Latin writing systems as name objects, which represent the field value, are limited to PDFDocEncoding
- allow radio buttons having the same export value to be handled independently
- Overrides:
getExportValuesin classPDButton- Returns:
- List containing all possible export values. If there is no Opt entry an empty list will be returned.
-
setExportValues
public void setExportValues(List<String> values)
Description copied from class:PDButtonThis will set the export values.- Overrides:
setExportValuesin classPDButton- Parameters:
values- List containing all possible export values. Supplying null or an empty list will remove the Opt entry.- See Also:
PDButton.getExportValues()
-
getValueAsString
public String getValueAsString()
Description copied from class:PDFieldReturns a string representation of the "V" entry, or an empty string.- Specified by:
getValueAsStringin classPDField- Returns:
- A non-null string.
-
-