com.qoppa.pdfViewer.actions
Class URLAction

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

public class URLAction
extends Action

Action that tells the viewer to open a web page from the URL.


Field Summary
static String ACTION_TYPE_DESCRIPTION
           
 
Constructor Summary
URLAction(String url)
          Constructs the action with a url.
 
Method Summary
 String getActionType()
          Returns the action type.
 String getActionTypeDesc()
          Returns the action type description
 String getURL()
          Returns the URL that this action refers to.
 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

ACTION_TYPE_DESCRIPTION

public static String ACTION_TYPE_DESCRIPTION
Constructor Detail

URLAction

public URLAction(String url)
Constructs the action with a url.

Parameters:
url - The url to go to when activated.
Method Detail

getURL

public String getURL()
Returns the URL that this action refers to.

Returns:
The target url.

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

toString

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

Overrides:
toString in class Object