Class URIAction
- java.lang.Object
-
- org.apache.fop.render.intermediate.extensions.AbstractAction
-
- org.apache.fop.render.intermediate.extensions.URIAction
-
- All Implemented Interfaces:
DocumentNavigationExtensionConstants,org.apache.xmlgraphics.util.XMLizable
public class URIAction extends AbstractAction implements DocumentNavigationExtensionConstants
Action class which represents a "URI" action, i.e. an action that will call up an external resource identified by a URI.
-
-
Field Summary
-
Fields inherited from interface org.apache.fop.render.intermediate.extensions.DocumentNavigationExtensionConstants
BOOKMARK, BOOKMARK_TREE, GOTO_URI, GOTO_XY, LINK, NAMED_DESTINATION, NAMESPACE, PREFIX
-
-
Constructor Summary
Constructors Constructor Description URIAction(java.lang.String uri, boolean newWindow)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetIDPrefix()Returns a string that is used to prefix a generated ID to make it unique.java.lang.StringgetURI()Returns the target URI.booleanisNewWindow()Indicates whether the link shall be opened in a new window.booleanisSame(AbstractAction other)Indicates whether two action are equal.voidtoSAX(org.xml.sax.ContentHandler handler)-
Methods inherited from class org.apache.fop.render.intermediate.extensions.AbstractAction
getID, getStructureTreeElement, hasID, isComplete, setID, setStructureTreeElement
-
-
-
-
Method Detail
-
getURI
public java.lang.String getURI()
Returns the target URI.- Returns:
- the target URI
-
isNewWindow
public boolean isNewWindow()
Indicates whether the link shall be opened in a new window.- Returns:
- true if a new window shall be opened
-
isSame
public boolean isSame(AbstractAction other)
Indicates whether two action are equal. Note: this is not the same asObject.equals(Object)!- Specified by:
isSamein classAbstractAction- Parameters:
other- the other action to compare to- Returns:
- true if the actions are equal
-
getIDPrefix
public java.lang.String getIDPrefix()
Returns a string that is used to prefix a generated ID to make it unique.- Overrides:
getIDPrefixin classAbstractAction- Returns:
- the prefix string
-
toSAX
public void toSAX(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException- Specified by:
toSAXin interfaceorg.apache.xmlgraphics.util.XMLizable- Throws:
org.xml.sax.SAXException
-
-