org.inria.ns.reflex.util.wunit
Class EventAction

java.lang.Object
  extended by org.inria.ns.reflex.processor.core.AbstractAction
      extended by org.inria.ns.reflex.util.wunit.SubmitAction
          extended by org.inria.ns.reflex.util.wunit.HtmlAction
              extended by org.inria.ns.reflex.util.wunit.EventAction
All Implemented Interfaces:
Executable, Presentable, NamespaceContextFactory

public class EventAction
extends HtmlAction

Fire an event : "click", "change", "focus", etc...

Author:
Philippe Poulard

Nested Class Summary
 
Nested classes/interfaces inherited from class org.inria.ns.reflex.processor.core.AbstractAction
AbstractAction.ParameterAdapter, AbstractAction.UselessAction
 
Field Summary
 
Fields inherited from class org.inria.ns.reflex.processor.core.AbstractAction
actions, parent, processorInstance
 
Constructor Summary
EventAction(Expression event, Expression value, Expression target, Expression frame, Node node, AbstractAction parent)
          Create a new event action.
 
Method Summary
 void runAction(DataSet dataSet)
          Submit a click on a link or a button.
 
Methods inherited from class org.inria.ns.reflex.util.wunit.HtmlAction
getDocument, getFrame
 
Methods inherited from class org.inria.ns.reflex.util.wunit.SubmitAction
unmarshal
 
Methods inherited from class org.inria.ns.reflex.processor.core.AbstractAction
addAction, addFallbackAction, createContext, getCanonicalPath, getFallbackAction, getLocalFallbackAction, getLogger, getNamespaceContext, getNode, getParent, recover, recover, removeFallbackAction, reorganize, run, runActions, toPrettyString, toPrettyString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventAction

public EventAction(Expression event,
                   Expression value,
                   Expression target,
                   Expression frame,
                   Node node,
                   AbstractAction parent)
Create a new event action.

Parameters:
event - The kind of event : "click", "mouveOver", etc
value - A value for the event.
target - A reference to the Node that will receive the event.
frame - A reference to the frame or window that contain the target node.
node - The XML node used for unmarshalling.
parent - The parent action.
Method Detail

runAction

public void runAction(DataSet dataSet)
               throws ExecutionException,
                      XPathException
Submit a click on a link or a button.

Overrides:
runAction in class AbstractAction
Parameters:
dataSet - The set of datas used when the action is running.
Throws:
ExecutionException - If the action can't be performed.
XPathException