COSObjectable
public final class PDCheckBox extends PDButton
Constructor | Description |
---|---|
PDCheckBox(PDAcroForm acroForm) |
Modifier and Type | Method | Description |
---|---|---|
void |
check() |
Checks the check box.
|
java.lang.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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefaultValue, getExportValues, getOnValues, getValue, getValueAsString, isPushButton, isRadioButton, setDefaultValue, setExportValues, 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 PDCheckBox(PDAcroForm acroForm)
acroForm
- The acroform.PDField(PDAcroForm)
public boolean isChecked()
PDButton.getValue()
.public void check() throws java.io.IOException
java.io.IOException
- if the appearance couldn't be generated.public void unCheck() throws java.io.IOException
java.io.IOException
- if the appearance couldn't be generated.public java.lang.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–2018. All rights reserved.