org.icepdf.core.pobjects.actions
Class ActionFactory

java.lang.Object
  extended by org.icepdf.core.pobjects.actions.ActionFactory

public class ActionFactory
extends java.lang.Object

Factory for build actions

Since:
4.0

Field Summary
static int GOTO_ACTION
           
static int LAUNCH_ACTION
           
static int URI_ACTION
           
 
Constructor Summary
ActionFactory()
           
 
Method Summary
static Action buildAction(Library library, int type)
          Creates a new ACTION object of the type specified by the type constant.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GOTO_ACTION

public static final int GOTO_ACTION
See Also:
Constant Field Values

URI_ACTION

public static final int URI_ACTION
See Also:
Constant Field Values

LAUNCH_ACTION

public static final int LAUNCH_ACTION
See Also:
Constant Field Values
Constructor Detail

ActionFactory

public ActionFactory()
Method Detail

buildAction

public static Action buildAction(Library library,
                                 int type)
Creates a new ACTION object of the type specified by the type constant. Currently there are only two supporte action types; GoTo, Launch and URI.

This call adds the new action object to the document library as well as the document StateManager.

Parameters:
library - library to register action with
type - type of action to create
Returns:
new action object of the specified type.