com.icesoft.pdf.pobjects.actions
Class Action
java.lang.Object
com.icesoft.pdf.pobjects.Dictionary
com.icesoft.pdf.pobjects.actions.Action
- Direct Known Subclasses:
- GoToAction, GoToRAction, LaunchAction, URIAction
- public class Action
- extends Dictionary
The Action class represents an Action Dictionary which defines
characteristics and behavior of an action. A PDF action can be a wide
variety of standard action types. This class is designed to help users
get needed attributes from the Action Dictionary. The Dictionary classes
getEntries method can be used to find other attributes associated with this action.
ICEpdf currently only uses the "GoTo" action when working with document
outlines. If your application is interpreting a page's Annotations then you
can query the Annotation object to get its Action.
- Since:
- 1.0
|
Method Summary |
String |
getType()
Gets the type of action that this dictionary describes. |
ACTION_TYPE_GOTO
public static final String ACTION_TYPE_GOTO
- See Also:
- Constant Field Values
ACTION_TYPE_GOTO_REMOTE
public static final String ACTION_TYPE_GOTO_REMOTE
- See Also:
- Constant Field Values
ACTION_TYPE_LAUNCH
public static final String ACTION_TYPE_LAUNCH
- See Also:
- Constant Field Values
ACTION_TYPE_URI
public static final String ACTION_TYPE_URI
- See Also:
- Constant Field Values
Action
public Action(Library l,
Hashtable h)
- Creates a new instance of a Action.
- Parameters:
l - document library.h - Action dictionary entries.
getType
public String getType()
Gets the type of action that this dictionary describes. The most
common actions can be found in the PDF Reference 1.6 in section
8.5.3. ICEpdf currently only takes advantage of the "GoTo" action
when a user clicks on a document outline.
- Returns:
- The action type.