public class URIAction extends AbstractAction implements DocumentNavigationExtensionConstants
BOOKMARK, BOOKMARK_TREE, GOTO_URI, GOTO_XY, LINK, NAMED_DESTINATION, NAMESPACE, PREFIX| Constructor and Description |
|---|
URIAction(String uri,
boolean newWindow)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getIDPrefix()
Returns a string that is used to prefix a generated ID to make it unique.
|
String |
getURI()
Returns the target URI.
|
boolean |
isNewWindow()
Indicates whether the link shall be opened in a new window.
|
boolean |
isSame(AbstractAction other)
Indicates whether two action are equal.
|
void |
toSAX(ContentHandler handler) |
getID, getStructureTreeElement, hasID, isComplete, setID, setStructureTreeElementpublic URIAction(String uri, boolean newWindow)
uri - the target URInewWindow - true if the link should be opened in a new windowpublic String getURI()
public boolean isNewWindow()
public boolean isSame(AbstractAction other)
Object.equals(Object)!isSame in class AbstractActionother - the other action to compare topublic String getIDPrefix()
getIDPrefix in class AbstractActionpublic void toSAX(ContentHandler handler) throws SAXException
toSAX in interface org.apache.xmlgraphics.util.XMLizableSAXExceptionCopyright © 2023 Apache Software Foundation. All rights reserved.