Class PdfAnnotationAdditionalActions
java.lang.Object
com.itextpdf.kernel.pdf.PdfObjectWrapper<PdfDictionary>
com.itextpdf.kernel.pdf.action.PdfAnnotationAdditionalActions
A wrapper for annotations additional actions dictionaries.
See section 12.6.3 Table 197 of ISO 32000-1.
An annotation additional actions dictionary defines the event handlers for annotations
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLists everyPdfActionfor all documented events for an annotation's additional actions.Returns thePdfActionfor the OnEnter event if there is any, or null.Returns thePdfActionfor the OnExit event if there is any, or null.Returns thePdfActionfor the OnFocus event if there is any, or null.Returns thePdfActionfor the OnLostFocus event if there is any, or null.Returns thePdfActionfor the OnMouseDown event if there is any, or null.Returns thePdfActionfor the OnMouseUp event if there is any, or null.Returns thePdfActionfor the OnPageClosed event if there is any, or null.Returns thePdfActionfor the OnPageLostView event if there is any, or null.Returns thePdfActionfor the OnPageOpened event if there is any, or null.Returns thePdfActionfor the OnPageVisible event if there is any, or null.getPdfActionForEvent(PdfName eventName) If exists, returns thePdfActionfor this event, otherwise returns null.protected booleanDefines if the object behind this wrapper must be an indirect object in the resultant document.voidsetOnEnter(PdfAction action) Sets thePdfActionto perform on the OnEnter event, or removes it when action is null.voidSets thePdfActionto perform on the OnExit event, or removes it when action is null.voidsetOnFocus(PdfAction action) Sets thePdfActionto perform on the OnFocus event, or removes it when action is null.voidsetOnLostFocus(PdfAction action) Sets thePdfActionto perform on the OnLostFocus event, or removes it when action is null.voidsetOnMouseDown(PdfAction action) Sets thePdfActionto perform on the OnMouseDown event, or removes it when action is null.voidsetOnMouseUp(PdfAction action) Sets thePdfActionto perform on the OnMouseUp event, or removes it when action is null.voidsetOnPageClosed(PdfAction action) Sets thePdfActionto perform on the OnPageClosed event, or removes it when action is null.voidsetOnPageLostView(PdfAction action) Sets thePdfActionto perform on the OnPageLostView event, or removes it when action is null.voidsetOnPageOpened(PdfAction action) Sets thePdfActionto perform on the OnPageOpened event, or removes it when action is null.voidsetOnPageVisible(PdfAction action) Sets thePdfActionto perform on the OnPageVisible event, or removes it when action is null.voidsetPdfActionForEvent(PdfName event, PdfAction action) Sets the action for an event, or removes it when the action is null.
-
Field Details
-
Events
-
-
Constructor Details
-
PdfAnnotationAdditionalActions
-
-
Method Details
-
getOnEnter
-
setOnEnter
-
getOnExit
-
setOnExit
-
getOnMouseDown
-
setOnMouseDown
-
getOnMouseUp
-
setOnMouseUp
-
getOnFocus
-
setOnFocus
-
getOnLostFocus
-
setOnLostFocus
-
getOnPageOpened
-
setOnPageOpened
-
getOnPageClosed
-
setOnPageClosed
-
getOnPageVisible
-
setOnPageVisible
-
getOnPageLostView
-
setOnPageLostView
-
getAllKnownActions
-
getPdfActionForEvent
-
setPdfActionForEvent
-
isWrappedObjectMustBeIndirect
protected boolean isWrappedObjectMustBeIndirect()Defines if the object behind this wrapper must be an indirect object in the resultant document.
If this method returns true it doesn't necessarily mean that object must be in the indirect state at any moment, but rather defines that when the object will be written to the document it will be transformed into indirect object if it's not indirect yet.
Return value of this method shouldn't depend on any logic, it should return always true or false.- Specified by:
isWrappedObjectMustBeIndirectin classPdfObjectWrapper<PdfDictionary>- Returns:
- true if in the resultant document the object behind the wrapper must be indirect, otherwise false.
-