public class PDPushButton extends PDButton
| Constructor and Description |
|---|
PDPushButton(PDAcroForm acroForm) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValue()
Returns the default value, if any.
|
List<String> |
getExportValues()
This will get the (optional) export values.
|
Set<String> |
getOnValues()
Get the values to set individual buttons within a group to the on state.
|
String |
getValue()
Returns the selected value.
|
String |
getValueAsString()
Returns a string representation of the "V" entry, or an empty string.
|
void |
setExportValues(List<String> values)
This will set the export values.
|
isPushButton, isRadioButton, setDefaultValue, setValue, setValueapplyChange, getFieldFlags, getFieldType, getWidgets, importFDF, setActions, setWidgetsgetAcroForm, getActions, getAlternateFieldName, getCOSObject, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, isNoExport, isReadOnly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadOnly, setRequired, toStringpublic PDPushButton(PDAcroForm acroForm)
acroForm - The acroform.PDField.PDField(PDAcroForm)public List<String> getExportValues()
PDButtonThe export values are defined in the field dictionaries /Opt key.
The option values are used to define the export values for the field to
getExportValues in class PDButtonPDButton.getOnValues()public void setExportValues(List<String> values)
PDButtonsetExportValues in class PDButtonvalues - List containing all possible export values. Supplying null or an empty list will remove the Opt entry.PDButton.getExportValues()public String getValue()
PDButtonOff is the default value which will also be returned if the value hasn't been set at all.
public String getDefaultValue()
PDButtongetDefaultValue in class PDButtonpublic String getValueAsString()
PDFieldgetValueAsString in class PDButtonpublic Set<String> getOnValues()
PDButtonThe On value could be an arbitrary string as long as it is within the limitations of a PDF name object. The Off value shall always be 'Off'. If not set or not part of the normal appearance keys 'Off' is the default
getOnValues in class PDButtonCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.