public final class PDCheckbox extends PDButton
acroForm, dictionary, parent| Constructor and Description |
|---|
PDCheckbox(PDAcroForm acroForm) |
| Modifier and Type | Method and Description |
|---|---|
void |
check()
Checks the check box.
|
Boolean |
getDefaultValue()
Returns the default value, if any.
|
boolean |
getValue()
Returns true if this field is checked.
|
String |
getValueAsString()
Returns a string representation of the "V" entry, or an empty string.
|
boolean |
isChecked()
This will tell if this radio button is currently checked or not.
|
void |
setDefaultValue(boolean value)
Sets the default value.
|
void |
setValue(boolean value)
Sets the checked value of this field.
|
void |
unCheck()
Unchecks the check box.
|
getExportValues, getOptions, isPushButton, isRadioButton, setExportValues, setOptions, setPushButton, setRadioButtonapplyChange, getFieldFlags, getFieldType, getWidget, getWidgets, importFDF, setActions, setWidgetsgetAcroForm, getActions, getAlternateFieldName, getCOSObject, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, getV, isNoExport, isReadonly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadonly, setRequired, toStringpublic PDCheckbox(PDAcroForm acroForm)
acroForm - The acroform.PDField.PDField(PDAcroForm)public boolean isChecked()
getValue().public void check()
throws IOException
IOExceptionpublic void unCheck()
throws IOException
IOExceptionpublic boolean getValue()
public Boolean getDefaultValue()
public String getValueAsString()
PDFieldgetValueAsString in class PDFieldpublic void setValue(boolean value)
throws IOException
value - True if checkedIOException - if the value could not be setpublic void setDefaultValue(boolean value)
throws IOException
value - True if checkedIOException - if the value could not be setCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.