public class PDCheckbox extends PDChoiceButton
FLAG_NO_EXPORT, FLAG_READ_ONLY, FLAG_REQUIRED
Constructor and Description |
---|
PDCheckbox(PDAcroForm theAcroForm,
COSDictionary field) |
Modifier and Type | Method and Description |
---|---|
void |
check()
Checks the radiobutton.
|
String |
getOffValue()
This will get the value of the radio button.
|
String |
getOnValue()
This will get the value of the radio button.
|
String |
getValue()
getValue gets the fields value to as a string.
|
boolean |
isChecked()
This will tell if this radio button is currently checked or not.
|
void |
setValue(String newValue)
setValue sets the fields value to a given string.
|
void |
unCheck()
Unchecks the radiobutton.
|
getOptions, setOptions
findFieldType, findKid, getAcroForm, getActions, getAlternateFieldName, getCOSObject, getDictionary, getFieldFlags, getFieldType, getFullyQualifiedName, getKids, getParent, getPartialName, getWidget, getWidgets, importFDF, isNoExport, isReadonly, isRequired, setAcroForm, setActions, setAlternateFieldName, setFieldFlags, setFieldType, setKids, setNoExport, setParent, setPartialName, setReadonly, setRequired, toString
public PDCheckbox(PDAcroForm theAcroForm, COSDictionary field)
theAcroForm
- The acroForm for this field.field
- The checkbox field dictionaryPDField.PDField(PDAcroForm,COSDictionary)
public boolean isChecked()
public void check()
public void unCheck()
public void setValue(String newValue)
public String getOffValue()
public String getOnValue()
public String getValue() throws IOException
getValue
in class PDField
IOException
- If there is an error getting the value.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.