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
FieldsModifier and TypeFieldDescriptionprivate Stringprivate WidgetAnnotation.FieldTypeprivate Stringprivate PDFObjectFields 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 annotationprivate AffineTransformTransform to the position of the stamp annotationprivate voidparseCommand(PDFObject obj) voidsetFieldValue(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
-
Field Details
-
fieldValue
-
fieldType
-
fieldName
-
fieldValueRef
-
cmd
-
-
Constructor Details
-
WidgetAnnotation
- Throws:
IOException
-
-
Method Details
-
parseAP
- Throws:
IOException
-
parseCommand
- Parameters:
obj-- Returns:
- Throws:
IOException
-
getPositionTransformation
Transform to the position of the stamp annotation- Returns:
-
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:
-