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 element
public ActionObject setType(PdfName type)
PdfName.URI
, PdfName.Launch
, PdfName.GoTo
, PdfName.GoToR
, PdfName.Named
.
type
- PdfName
type of inner action object
ActionObject
public PdfString getUri()
PdfString
value of URI element
public ActionObject setUri(PdfString uri)
uri
- PdfString
value to be set to URI element
ActionObject
public boolean isMap()
public ActionObject setMap(boolean map)
map
- boolean indicating if URI element is a map
ActionObject
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 element
ActionObject
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 object
ActionObject
public boolean isNewWindow()
public ActionObject setNewWindow(boolean newWindow)
newWindow
- boolean indicating if current Launch action element should be opened in a new window
ActionObject
public DestObject getDestination()
DestObject
destination attribute of current action element
public ActionObject setDestination(DestObject destination)
destination
- DestObject
destination attribute of the action element
ActionObject
Copyright © 1998–2023 iText Group NV. All rights reserved.