com.qoppa.pdfViewer.actions
Class NamedAction

java.lang.Object
  extended by com.qoppa.pdfViewer.actions.Action
      extended by com.qoppa.pdfViewer.actions.NamedAction

public class NamedAction
extends Action

Actions in a document defined by "name". Actions defined in this way are typically used to execute commands as if the user chose them from the application menu bar. For instance, named commands can be "Print", "Save", "Open" and others.

Author:
Qoppa Software

Field Summary
static String ACTION_TYPE_DESCRIPTION
           
static String NAME_FIRST_PAGE
           
static String NAME_LAST_PAGE
           
static String NAME_NEXT_PAGE
           
static String NAME_OPEN
           
static String NAME_PREV_PAGE
           
static String NAME_PRINT
           
static String NAME_SAVE
           
 
Constructor Summary
NamedAction(String actionName)
          Construct a NamedAction object with the named command.
 
Method Summary
 String getActionName()
          Returns the named action.
 String getActionType()
          Returns the action type.
 String getActionTypeDesc()
          Returns the action type description
static Vector getNameList()
          Returns a list of the recognized action names.
 String toString()
          Returns the description of the action.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME_NEXT_PAGE

public static final String NAME_NEXT_PAGE
See Also:
Constant Field Values

NAME_PREV_PAGE

public static final String NAME_PREV_PAGE
See Also:
Constant Field Values

NAME_FIRST_PAGE

public static final String NAME_FIRST_PAGE
See Also:
Constant Field Values

NAME_LAST_PAGE

public static final String NAME_LAST_PAGE
See Also:
Constant Field Values

NAME_PRINT

public static final String NAME_PRINT
See Also:
Constant Field Values

NAME_SAVE

public static final String NAME_SAVE
See Also:
Constant Field Values

NAME_OPEN

public static final String NAME_OPEN
See Also:
Constant Field Values

ACTION_TYPE_DESCRIPTION

public static String ACTION_TYPE_DESCRIPTION
Constructor Detail

NamedAction

public NamedAction(String actionName)
Construct a NamedAction object with the named command.

Parameters:
actionName - The name of the action.
Method Detail

getActionType

public String getActionType()
Returns the action type.

Specified by:
getActionType in class Action
Returns:
The action type.

getActionTypeDesc

public String getActionTypeDesc()
Returns the action type description

Specified by:
getActionTypeDesc in class Action

getActionName

public String getActionName()
Returns the named action.

Returns:
The name of the action.

getNameList

public static Vector getNameList()
Returns a list of the recognized action names.

Returns:
A vector containing the list of recognized names

toString

public String toString()
Returns the description of the action.

Overrides:
toString in class Object