public class ActionObject extends Object
| Constructor and Description |
|---|
ActionObject(PdfName type) |
| 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)
public PdfName getType()
PdfName.URI, PdfName.Launch,
PdfName.GoTo, PdfName.GoToR, PdfName.Named.PdfName type of inner action elementpublic ActionObject setType(PdfName type)
PdfName.URI, PdfName.Launch,
PdfName.GoTo, PdfName.GoToR, PdfName.Named.type - PdfName type of inner action objectActionObjectpublic PdfString getUri()
PdfString value of URI elementpublic ActionObject setUri(PdfString uri)
uri - PdfString value to be set to URI elementActionObjectpublic boolean isMap()
public ActionObject setMap(boolean map)
map - boolean indicating if URI element is a mapActionObjectpublic PdfName getNameAction()
PdfName value of Name attribute of a named action elementpublic ActionObject setNameAction(PdfName nameAction)
nameAction - PdfName value to be set to Name attribute of a named action elementActionObjectpublic String getFileOriginalName()
String value of OriginalName attribute of current action objectpublic ActionObject setFileOriginalName(String fileOriginalName)
fileOriginalName - String value of OriginalName attribute of action objectActionObjectpublic boolean isNewWindow()
public ActionObject setNewWindow(boolean newWindow)
newWindow - boolean indicating if current Launch action element should be opened in a new windowActionObjectpublic DestObject getDestination()
DestObject destination attribute of current action elementpublic ActionObject setDestination(DestObject destination)
destination - DestObject destination attribute of the action elementActionObjectCopyright © 1998–2022 iText Group NV. All rights reserved.