public class PDPushButton extends PDField
FLAG_NO_EXPORT, FLAG_READ_ONLY, FLAG_REQUIRED
Constructor and Description |
---|
PDPushButton(PDAcroForm theAcroForm,
COSDictionary field) |
Modifier and Type | Method and Description |
---|---|
String |
getValue()
getValue gets the fields value to as a string.
|
void |
setValue(String value)
setValue sets the fields value to a given string.
|
findFieldType, findKid, getAcroForm, getActions, getAlternateFieldName, getCOSObject, getDictionary, getFieldFlags, getFieldType, getFullyQualifiedName, getKids, getParent, getPartialName, getWidget, importFDF, isNoExport, isReadonly, isRequired, setAcroForm, setActions, setAlternateFieldName, setFieldFlags, setKids, setNoExport, setParent, setPartialName, setReadonly, setRequired, toString
public PDPushButton(PDAcroForm theAcroForm, COSDictionary field)
theAcroForm
- The acroForm for this field.field
- The field for this push button.org.apache.pdfbox.pdmodel.field.PDField#COSField(org.apache.pdfbox.cos.COSDictionary)
public void setValue(String value) throws IOException
PDField
setValue
in class PDField
value
- The new value for the field.IOException
- If there is an error creating the appearance stream.as.interactive.pdf.form.cos.COSField#setValue(java.lang.String)
public String getValue() throws IOException
getValue
in class PDField
IOException
- If there is an error getting the value.Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.