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, getWidgets, importFDF, isNoExport, isReadonly, isRequired, setAcroForm, setActions, setAlternateFieldName, setFieldFlags, setFieldType, 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.PDField.PDField(PDAcroForm, 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.PDField.setValue(java.lang.String)
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.