COSObjectablePDCheckBox, PDPushButton, PDRadioButtonpublic abstract class PDButton extends PDTerminalField
| Constructor | Description |
|---|---|
PDButton(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.util.Set<java.lang.String> |
getOnValues() |
Get the values to set individual buttons within a group to the on state.
|
java.lang.String |
getValue() |
Returns the selected value.
|
java.lang.String |
getValueAsString() |
Returns a string representation of the "V" entry, or an empty string.
|
boolean |
isPushButton() |
Determines if push button bit is set.
|
boolean |
isRadioButton() |
Determines if radio button bit is set.
|
void |
setDefaultValue(java.lang.String value) |
Sets the default value.
|
void |
setExportValues(java.util.List<java.lang.String> values) |
This will set the export values.
|
void |
setPushButton(boolean pushbutton) |
Set the push button bit.
|
void |
setRadioButton(boolean radiobutton) |
Set the radio button bit.
|
void |
setValue(java.lang.String value) |
Sets the selected option given its name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAcroForm, getActions, getAlternateFieldName, getCOSObject, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, isNoExport, isReadOnly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadOnly, setRequired, toStringapplyChange, getFieldFlags, getFieldType, getWidget, getWidgets, importFDF, setActions, setWidgetspublic PDButton(PDAcroForm acroForm)
acroForm - The acroform.PDField(PDAcroForm)public boolean isPushButton()
public void setPushButton(boolean pushbutton)
pushbutton - if true the button field is treated as a push button field.public boolean isRadioButton()
public void setRadioButton(boolean radiobutton)
radiobutton - if true the button field is treated as a radio button field.public java.lang.String getValue()
public void setValue(java.lang.String value)
throws java.io.IOException
public java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String value)
value - Name of option to selectjava.lang.IllegalArgumentException - if the value is not a valid option.public java.lang.String getValueAsString()
PDFieldgetValueAsString in class PDFieldpublic java.util.List<java.lang.String> getExportValues()
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
getOnValues()public void setExportValues(java.util.List<java.lang.String> values)
values - List containing all possible export values. Supplying null or an empty list will remove the Opt entry.getExportValues()public java.util.Set<java.lang.String> getOnValues()
The 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
Copyright © 2002–2018. All rights reserved.