Class WidgetAnnotation
java.lang.Object
org.openpdf.renderer.annotation.PDFAnnotation
org.openpdf.renderer.annotation.WidgetAnnotation
PDF annotation describing a widget.
- Since:
- Aug 20, 2010
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType for PDF form elementsNested classes/interfaces inherited from class PDFAnnotation
PDFAnnotation.Flags -
Field Summary
Fields inherited from class PDFAnnotation
GOTO, GOTOE, GOTOR, URI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionName for this widget.Returns the type of the fieldThe field's value as a string.Get list of pdf commands for this annotationvoidsetFieldValue(String fieldValue) Sets the field value for a text field.Methods inherited from class PDFAnnotation
createAnnotation, getAnnotationName, getAppearanceState, getContents, getFlags, getModified, getPdfObj, getRect, getScalingTransformation, getSubType, getType, isFlagSet, parseRect, toString
-
Constructor Details
-
WidgetAnnotation
- Throws:
IOException
-
-
Method Details
-
getFieldType
-
getFieldValue
The field's value as a string. Might benull.- Returns:
- The field value or
null.
-
setFieldValue
Sets the field value for a text field. Note: this doesn't actually change the PDF file yet.- Parameters:
fieldValue- The new value for the text field
-
getFieldName
-
getPageCommandsForAnnotation
Description copied from class:PDFAnnotationGet list of pdf commands for this annotation- Overrides:
getPageCommandsForAnnotationin classPDFAnnotation- Returns:
-