com.crionics.jpdf.outline
Class OutlineItemAction

java.lang.Object
  extended by PdfObjectContainer
      extended by com.crionics.jpdf.outline.AbstractOutlineItem
          extended by com.crionics.jpdf.outline.OutlineItemAction

public class OutlineItemAction
extends AbstractOutlineItem

An Outline Item which contains Actions interacting with PDF viewer when selected. See the class AbstractOutlineItemfor a description of Outline Items.


Method Summary
static OutlineItemAction createInstance(PdfDocument doc)
           
 AbstractAction getAction()
          Recovers the Action (or actions if they are chained) associated with this Outline Item.
 void setAction(AbstractAction action)
          Sets the Action (or actions if they are chained) to associate with this Outline Item.
 
Methods inherited from class com.crionics.jpdf.outline.AbstractOutlineItem
addAfter, addBelow, addChild, addNext, equals, equals, getChild, getFirst, getLast, getNext, getPageIndex, getPageIndex, getParent, getPrev, getTitle, hasChild, hasNext, removeFromTree, setTitle
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createInstance

public static OutlineItemAction createInstance(PdfDocument doc)
                                        throws PdfException,
                                               java.io.IOException
Throws:
PdfException
java.io.IOException

getAction

public AbstractAction getAction()
                         throws PdfException,
                                java.io.IOException
Recovers the Action (or actions if they are chained) associated with this Outline Item.

Returns:
The action.
Throws:
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.

setAction

public void setAction(AbstractAction action)
               throws PdfException,
                      java.io.IOException
Sets the Action (or actions if they are chained) to associate with this Outline Item.

Parameters:
action - The Action to set.
Throws:
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.


Copyright © 1999-2007 Crionics. All Rights Reserved.