COSObjectable
public class PDPushButton extends PDButton
Constructor | Description |
---|---|
PDPushButton(PDAcroForm acroForm) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getDefaultValue() |
Returns the default value, if any.
|
java.util.List<java.lang.String> |
getExportValues() |
This will get the (optional) export values.
|
java.lang.String |
getValue() |
Returns the selected value.
|
java.lang.String |
getValueAsString() |
Returns a string representation of the "V" entry, or an empty string.
|
void |
setExportValues(java.util.List<java.lang.String> values) |
This will set the export values.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getOnValues, isPushButton, isRadioButton, setDefaultValue, setPushButton, setRadioButton, setValue
getAcroForm, getActions, getAlternateFieldName, getCOSObject, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, isNoExport, isReadOnly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadOnly, setRequired, toString
applyChange, getFieldFlags, getFieldType, getWidget, getWidgets, importFDF, setActions, setWidgets
public PDPushButton(PDAcroForm acroForm)
acroForm
- The acroform.PDField(PDAcroForm)
public java.util.List<java.lang.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
PDButton.getOnValues()
public void setExportValues(java.util.List<java.lang.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 java.lang.String getValue()
PDButton
Off is the default value which will also be returned if the value hasn't been set at all.
public java.lang.String getDefaultValue()
PDButton
getDefaultValue
in class PDButton
public java.lang.String getValueAsString()
PDField
getValueAsString
in class PDButton
Copyright © 2002–2018. All rights reserved.