public class ActionObject extends Object
| Constructor and Description |
|---|
ActionObject(PdfName type)
Creates an instance of
ActionObject. |
| Modifier and Type | Method and Description |
|---|---|
DestObject |
getDestination()
Gets Dest, inner element of link, GoTo, and GoToR elements.
|
String |
getFileOriginalName()
Gets the string value of OriginalName, required attribute of File inner element of GoToR or Launch element.
|
PdfName |
getNameAction()
Gets the value of Name, required attribute of Named element.
|
PdfName |
getType()
Returns the type of inner action element.
|
PdfString |
getUri()
Gets the string value of URI elements.
|
boolean |
isMap()
Gets IsMap, optional attribute of URI element.
|
boolean |
isNewWindow()
Gets the boolean value of NewWindow, optional attribute of Launch element.
|
ActionObject |
setDestination(DestObject destination)
Sets Dest, inner element of link, GoTo, and GoToR elements.
|
ActionObject |
setFileOriginalName(String fileOriginalName)
Sets the string value of OriginalName, required attribute of File inner element of GoToR or Launch element.
|
ActionObject |
setMap(boolean map)
Sets IsMap, optional attribute of URI element.
|
ActionObject |
setNameAction(PdfName nameAction)
Sets the value of Name, required attribute of Named element.
|
ActionObject |
setNewWindow(boolean newWindow)
Sets the boolean value of NewWindow, optional attribute of Launch element.
|
ActionObject |
setType(PdfName type)
Sets the type of inner action element.
|
ActionObject |
setUri(PdfString uri)
Sets the string value of URI element.
|
public ActionObject(PdfName type)
ActionObject.type - type of inner action element. Possible values: PdfName.URI, PdfName.Launch,
PdfName.GoTo, PdfName.GoToR, PdfName.Namedpublic PdfName getType()
PdfName.URI, PdfName.Launch,
PdfName.GoTo, PdfName.GoToR, PdfName.Named.PdfName type of inner action element.public ActionObject setType(PdfName type)
PdfName.URI, PdfName.Launch,
PdfName.GoTo, PdfName.GoToR, PdfName.Named.type - PdfName type of inner action objectActionObject.public PdfString getUri()
PdfString value of URI element.public ActionObject setUri(PdfString uri)
uri - PdfString value to be set to URI elementActionObject.public boolean isMap()
public ActionObject setMap(boolean map)
map - boolean indicating if URI element is a mapActionObject.public PdfName getNameAction()
PdfName value of Name attribute of a named action element.public ActionObject setNameAction(PdfName nameAction)
nameAction - PdfName value to be set to Name attribute of a named action elementActionObject.public String getFileOriginalName()
String value of OriginalName attribute of current action object.public ActionObject setFileOriginalName(String fileOriginalName)
fileOriginalName - String value of OriginalName attribute of action objectActionObject.public boolean isNewWindow()
public ActionObject setNewWindow(boolean newWindow)
newWindow - boolean indicating if current Launch action element should be opened in a new windowActionObject.public DestObject getDestination()
DestObject destination attribute of current action element.public ActionObject setDestination(DestObject destination)
destination - DestObject destination attribute of the action elementActionObject.Copyright © 1998–2025 Apryse Group NV. All rights reserved.