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 export values.
|
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.
|
getOnValues, isPushButton, isRadioButton, setDefaultValue, setPushButton, setRadioButton, setValue
applyChange, getFieldFlags, getFieldType, getWidget, getWidgets, importFDF, setActions, setWidgets
getAcroForm, getActions, getAlternateFieldName, getCOSObject, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, isNoExport, isReadOnly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadOnly, setRequired, toString
public PDPushButton(PDAcroForm acroForm)
acroForm
- The acroform.PDField.PDField(PDAcroForm)
public List<String> getExportValues()
PDButton
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
getExportValues
in class PDButton
public void setExportValues(List<String> values)
PDButton
setExportValues
in class PDButton
values
- List containing all possible export values. Supplying null or an empty list will remove the Opt entry.PDButton.getExportValues()
public String getValue()
PDButton
public String getDefaultValue()
PDButton
getDefaultValue
in class PDButton
public String getValueAsString()
PDField
getValueAsString
in class PDButton
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.