public final class PDCheckBox extends PDButton
Constructor and Description |
---|
PDCheckBox(PDAcroForm acroForm) |
Modifier and Type | Method and Description |
---|---|
void |
check()
Checks the check box.
|
String |
getOnValue()
Get the value which sets the check box to the On state.
|
boolean |
isChecked()
This will tell if this radio button is currently checked or not.
|
void |
unCheck()
Unchecks the check box.
|
getDefaultValue, getExportValues, getOnValues, getValue, getValueAsString, isPushButton, isRadioButton, setDefaultValue, setExportValues, 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 PDCheckBox(PDAcroForm acroForm)
acroForm
- The acroform.PDField.PDField(PDAcroForm)
public boolean isChecked()
PDButton.getValue()
.public void check() throws IOException
IOException
- if the appearance couldn't be generated.public void unCheck() throws IOException
IOException
- if the appearance couldn't be generated.public String getOnValue()
The On value should be 'Yes' but other values are possible so we need to look for that. On the other hand the Off value shall always be 'Off'. If not set or not part of the normal appearance keys 'Off' is the default
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.