Package org.openpdf.renderer.action
Class GoToEAction
java.lang.Object
org.openpdf.renderer.action.PDFAction
org.openpdf.renderer.action.GoToEAction
Action directing to a location within an embedded PDF document
- Since:
- 07.07.2009
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInner class for holding the target dictionary's information -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PDFDestinationthe destination within the remote PDF fileprivate Stringthe remote file this action refers to (optional)private booleanShould the remote file be opened in a new window? (optional)private GoToEAction.GoToETargetThe target dictionary -
Constructor Summary
ConstructorsConstructorDescriptionGoToEAction(PDFDestination dest, String file, boolean newWindow) Create a new GoToEAction from the given attributesGoToEAction(PDFObject obj, PDFObject root) Creates a new instance of GoToEAction from an object -
Method Summary
Modifier and TypeMethodDescriptionGet the destination this action refers togetFile()Get the file this action refers toGet the target dictionarybooleanShould the remote file be opened in a new window?private GoToEAction.GoToETargetparseTargetDistionary(PDFObject targetObj, ArrayList<GoToEAction.GoToETarget> list) Parse a target dictionary if available
-
Field Details
-
destination
the destination within the remote PDF file -
file
the remote file this action refers to (optional) -
newWindow
private boolean newWindowShould the remote file be opened in a new window? (optional) -
target
The target dictionary
-
-
Constructor Details
-
GoToEAction
Creates a new instance of GoToEAction from an object- Parameters:
obj- the PDFObject with the action information- Throws:
IOException- - in case the action can not be parsed
-
GoToEAction
Create a new GoToEAction from the given attributes- Parameters:
dest-file-newWindow-
-
-
Method Details
-
parseTargetDistionary
private GoToEAction.GoToETarget parseTargetDistionary(PDFObject targetObj, ArrayList<GoToEAction.GoToETarget> list) throws IOException Parse a target dictionary if available- Parameters:
targetObj-list- - a list of all already parsed targets, for not getting in an endless loop (if a target is found which is already contained, the recursive calling of this method will stop).- Throws:
IOException- - in case a value can not be parsed
-
getDestination
Get the destination this action refers to- Returns:
- PDFDestination
-
getFile
Get the file this action refers to- Returns:
- PDFDestination
-
isNewWindow
public boolean isNewWindow()Should the remote file be opened in a new window?- Returns:
- boolean
-
getTarget
Get the target dictionary- Returns:
- GoToETarget
-