com.qoppa.pdfViewer.actions
Class TriggerActions

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable
          extended by com.qoppa.pdfViewer.actions.TriggerActions
All Implemented Interfaces:
Serializable, Cloneable, Map

public class TriggerActions
extends Hashtable

Utility class to encapsulate a list of actions triggered by different mouse events such as mouse entered, mouse exited, mouse up and mouse down. TriggerActions.getMouseDownActions for instance returns a vector of all actions to be executed on a mouse down event. This utility class is used by the Annotation class for instance since an annotation may have trigger actions associated with it.

See Also:
Serialized Form

Field Summary
static String BLUR
           
static String CALCULATE
           
static String FOCUS
           
static String FORMAT
           
static String KEYSTROKE
           
static String MOUSE_DOWN
           
static String MOUSE_ENTERED
           
static String MOUSE_EXITED
           
static String MOUSE_UP
           
static String PAGE_CLOSE
           
static String PAGE_OPEN
           
static String VALIDATE
           
 
Constructor Summary
TriggerActions()
           
 
Method Summary
 void clear()
          Overrides Hashtable method to keep track of modifications.
 Vector getBlurActions()
          Get the list of actions to be performed on blur (focus lost).
 Vector getCalculateActions()
          Get the list of actions to be performed when another field changes
 Vector getFocusActions()
          Get the list of actions to be performed when focus is gained.
 Vector getFormatActions()
          Get the list of actions to be executed before a field is formatted
 Vector getKeystrokeActions()
          Get the list of actions to be performed on a keystroke.
 Vector getMouseDownActions()
          Get the list of action to be executed on Mouse Down events as a Vector of Actions.
 Vector getMouseEnteredActions()
          Get the list of action to be executed on Mouse Entered events as a Vector of Actions.
 Vector getMouseExitedActions()
          Get the list of action to be executed on Mouse Exited events as a Vector of Actions.
 Vector getMouseUpActions()
          Get the list of action to be executed on Mouse Up events as a Vector of Actions.
 Vector getPageCloseActions()
          Get the list of actions to be performed when the page is closed.
 Vector getPageOpenActions()
          Get the list of actions to be performed when the page is opened.
 Vector getValidateActions()
          Get the list of actions to be performed when a field value is changed
 boolean isModified()
          Check to see if the TriggerActions object has been modified
 Object put(Object key, Object value)
          Overrides Hashtable method to keep track of modifications.
 void putAll(Map t)
          Overrides Hashtable method to keep track of modifications.
 Object remove(Object key)
          Overrides Hashtable method to keep track of modifications.
 void setModified(boolean modified)
          Set the modified status of TriggerActions
 
Methods inherited from class java.util.Hashtable
clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MOUSE_ENTERED

public static String MOUSE_ENTERED

MOUSE_EXITED

public static String MOUSE_EXITED

MOUSE_UP

public static String MOUSE_UP

MOUSE_DOWN

public static String MOUSE_DOWN

VALIDATE

public static String VALIDATE

CALCULATE

public static String CALCULATE

FORMAT

public static String FORMAT

KEYSTROKE

public static String KEYSTROKE

BLUR

public static String BLUR

FOCUS

public static String FOCUS

PAGE_OPEN

public static String PAGE_OPEN

PAGE_CLOSE

public static String PAGE_CLOSE
Constructor Detail

TriggerActions

public TriggerActions()
Method Detail

getMouseEnteredActions

public Vector getMouseEnteredActions()
Get the list of action to be executed on Mouse Entered events as a Vector of Actions.


getMouseExitedActions

public Vector getMouseExitedActions()
Get the list of action to be executed on Mouse Exited events as a Vector of Actions.


getMouseDownActions

public Vector getMouseDownActions()
Get the list of action to be executed on Mouse Down events as a Vector of Actions.


getMouseUpActions

public Vector getMouseUpActions()
Get the list of action to be executed on Mouse Up events as a Vector of Actions.


getFormatActions

public Vector getFormatActions()
Get the list of actions to be executed before a field is formatted

Returns:
Returns the list of actions that will be executed when formatting the field.

getValidateActions

public Vector getValidateActions()
Get the list of actions to be performed when a field value is changed

Returns:
The list of actions that will be executed when validating the field.

getCalculateActions

public Vector getCalculateActions()
Get the list of actions to be performed when another field changes

Returns:
The list of actions that will be executed when calculating the value of the field.

getKeystrokeActions

public Vector getKeystrokeActions()
Get the list of actions to be performed on a keystroke.

Returns:
The list of actions to be executed when there is a keystroke on the field.

getBlurActions

public Vector getBlurActions()
Get the list of actions to be performed on blur (focus lost).

Returns:
The list of actions when the field loses focus.

getFocusActions

public Vector getFocusActions()
Get the list of actions to be performed when focus is gained.

Returns:
The list of actions when the field gains focus.

getPageOpenActions

public Vector getPageOpenActions()
Get the list of actions to be performed when the page is opened.

Returns:
The list of actions to be performed when the page is opened.

getPageCloseActions

public Vector getPageCloseActions()
Get the list of actions to be performed when the page is closed.

Returns:
The list of actions to be performed when the page is closed.

remove

public Object remove(Object key)
              throws NullPointerException
Overrides Hashtable method to keep track of modifications.

Specified by:
remove in interface Map
Overrides:
remove in class Hashtable
Throws:
NullPointerException

put

public Object put(Object key,
                  Object value)
           throws NullPointerException
Overrides Hashtable method to keep track of modifications.

Specified by:
put in interface Map
Overrides:
put in class Hashtable
Throws:
NullPointerException

isModified

public boolean isModified()
Check to see if the TriggerActions object has been modified

Returns:
boolean stating whether the TriggerActions have been modified

setModified

public void setModified(boolean modified)
Set the modified status of TriggerActions

Parameters:
modified - A boolean representing whether or not the TriggerActions are being marked as modified

clear

public void clear()
Overrides Hashtable method to keep track of modifications.

Specified by:
clear in interface Map
Overrides:
clear in class Hashtable

putAll

public void putAll(Map t)
            throws NullPointerException
Overrides Hashtable method to keep track of modifications.

Specified by:
putAll in interface Map
Overrides:
putAll in class Hashtable
Throws:
NullPointerException