public class PdfAnnotationAdditionalActions extends PdfObjectWrapper<PdfDictionary>
| Constructor and Description |
|---|
PdfAnnotationAdditionalActions(PdfDictionary pdfObject) |
| Modifier and Type | Method and Description |
|---|---|
List<PdfAction> |
getAllKnownActions()
Lists every
PdfAction for all documented events for an annotation's additional actions. |
PdfAction |
getOnEnter()
Returns the
PdfAction for the OnEnter event if there is any, or null. |
PdfAction |
getOnExit()
Returns the
PdfAction for the OnExit event if there is any, or null. |
PdfAction |
getOnFocus()
Returns the
PdfAction for the OnFocus event if there is any, or null. |
PdfAction |
getOnLostFocus()
Returns the
PdfAction for the OnLostFocus event if there is any, or null. |
PdfAction |
getOnMouseDown()
Returns the
PdfAction for the OnMouseDown event if there is any, or null. |
PdfAction |
getOnMouseUp()
Returns the
PdfAction for the OnMouseUp event if there is any, or null. |
PdfAction |
getOnPageClosed()
Returns the
PdfAction for the OnPageClosed event if there is any, or null. |
PdfAction |
getOnPageLostView()
Returns the
PdfAction for the OnPageLostView event if there is any, or null. |
PdfAction |
getOnPageOpened()
Returns the
PdfAction for the OnPageOpened event if there is any, or null. |
PdfAction |
getOnPageVisible()
Returns the
PdfAction for the OnPageVisible event if there is any, or null. |
PdfAction |
getPdfActionForEvent(PdfName eventName)
If exists, returns the
PdfAction for this event, otherwise returns null. |
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the
resultant document.
|
void |
setOnEnter(PdfAction action)
Sets the
PdfAction to perform on the OnEnter event, or removes it when action is null. |
void |
setOnExit(PdfAction action)
Sets the
PdfAction to perform on the OnExit event, or removes it when action is null. |
void |
setOnFocus(PdfAction action)
Sets the
PdfAction to perform on the OnFocus event, or removes it when action is null. |
void |
setOnLostFocus(PdfAction action)
Sets the
PdfAction to perform on the OnLostFocus event, or removes it when action is null. |
void |
setOnMouseDown(PdfAction action)
Sets the
PdfAction to perform on the OnMouseDown event, or removes it when action is null. |
void |
setOnMouseUp(PdfAction action)
Sets the
PdfAction to perform on the OnMouseUp event, or removes it when action is null. |
void |
setOnPageClosed(PdfAction action)
Sets the
PdfAction to perform on the OnPageClosed event, or removes it when action is null. |
void |
setOnPageLostView(PdfAction action)
Sets the
PdfAction to perform on the OnPageLostView event, or removes it when action is null. |
void |
setOnPageOpened(PdfAction action)
Sets the
PdfAction to perform on the OnPageOpened event, or removes it when action is null. |
void |
setOnPageVisible(PdfAction action)
Sets the
PdfAction to perform on the OnPageVisible event, or removes it when action is null. |
void |
setPdfActionForEvent(PdfName event,
PdfAction action)
Sets the action for an event, or removes it when the action is null.
|
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleasepublic PdfAnnotationAdditionalActions(PdfDictionary pdfObject)
public PdfAction getOnEnter()
PdfAction for the OnEnter event if there is any, or null.PdfAction or nullpublic void setOnEnter(PdfAction action)
PdfAction to perform on the OnEnter event, or removes it when action is null.action - The PdfAction to set or null to remove the actionpublic PdfAction getOnExit()
PdfAction for the OnExit event if there is any, or null.PdfAction or nullpublic void setOnExit(PdfAction action)
PdfAction to perform on the OnExit event, or removes it when action is null.action - PdfAction The action to set or null to remove the actionpublic PdfAction getOnMouseDown()
PdfAction for the OnMouseDown event if there is any, or null.PdfAction or nullpublic void setOnMouseDown(PdfAction action)
PdfAction to perform on the OnMouseDown event, or removes it when action is null.action - PdfAction The action to set or null to remove the actionpublic PdfAction getOnMouseUp()
PdfAction for the OnMouseUp event if there is any, or null.PdfAction or nullpublic void setOnMouseUp(PdfAction action)
PdfAction to perform on the OnMouseUp event, or removes it when action is null.action - PdfAction The action to set or null to remove the actionpublic PdfAction getOnFocus()
PdfAction for the OnFocus event if there is any, or null.PdfAction or nullpublic void setOnFocus(PdfAction action)
PdfAction to perform on the OnFocus event, or removes it when action is null.action - PdfAction The action to set or null to remove the actionpublic PdfAction getOnLostFocus()
PdfAction for the OnLostFocus event if there is any, or null.PdfAction or nullpublic void setOnLostFocus(PdfAction action)
PdfAction to perform on the OnLostFocus event, or removes it when action is null.action - PdfAction The action to set or null to remove the actionpublic PdfAction getOnPageOpened()
PdfAction for the OnPageOpened event if there is any, or null.PdfAction or nullpublic void setOnPageOpened(PdfAction action)
PdfAction to perform on the OnPageOpened event, or removes it when action is null.action - PdfAction The action to set or null to remove the actionpublic PdfAction getOnPageClosed()
PdfAction for the OnPageClosed event if there is any, or null.PdfAction or nullpublic void setOnPageClosed(PdfAction action)
PdfAction to perform on the OnPageClosed event, or removes it when action is null.action - PdfAction The action to set or null to remove the actionpublic PdfAction getOnPageVisible()
PdfAction for the OnPageVisible event if there is any, or null.PdfAction or nullpublic void setOnPageVisible(PdfAction action)
PdfAction to perform on the OnPageVisible event, or removes it when action is null.action - PdfAction The action to set or null to remove the actionpublic PdfAction getOnPageLostView()
PdfAction for the OnPageLostView event if there is any, or null.PdfAction or nullpublic void setOnPageLostView(PdfAction action)
PdfAction to perform on the OnPageLostView event, or removes it when action is null.action - PdfAction The action to set or null to remove the actionpublic List<PdfAction> getAllKnownActions()
PdfAction for all documented events for an annotation's additional actions.
See section 12.6.3 Table 197 of ISO 32000-1public PdfAction getPdfActionForEvent(PdfName eventName)
PdfAction for this event, otherwise returns null.public void setPdfActionForEvent(PdfName event, PdfAction action)
event - the event to set or remove the action foraction - the PdfAction to set or nullprotected boolean isWrappedObjectMustBeIndirect()
isWrappedObjectMustBeIndirect in class PdfObjectWrapper<PdfDictionary>Copyright © 1998–2023 iText Group NV. All rights reserved.