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

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
All Implemented Interfaces:
Executable, Presentable, NamespaceContextFactory
Direct Known Subclasses:
EventAction, FillFormAction, UrlAction

public abstract class HtmlAction
extends SubmitAction

Submit an action through an HTML element (link, button, form).

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
HtmlAction(Expression frame, Node node, AbstractAction parent)
          Create a new HtmlAction.
 
Method Summary
static DomNode getDocument(WebWindow window)
          Return the document in the frame given.
 XFrame getFrame(DataSet dataSet)
          Return the frame referenced by this action.
 
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, runAction, runActions, toPrettyString, toPrettyString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HtmlAction

public HtmlAction(Expression frame,
                  Node node,
                  AbstractAction parent)
Create a new HtmlAction.

Parameters:
frame - A reference to a frame or a window, can be null. If at runtime the reference is resolved to a string, a new top level window will be created.
node - The XML node used for unmarshalling.
parent - The parent action.
Method Detail

getFrame

public XFrame getFrame(DataSet dataSet)
                throws ExecutionException,
                       XMLException
Return the frame referenced by this action.

Parameters:
dataSet - The data set used to retrieve the frame reference.
Returns:
The frame referenced by this action.
Throws:
XMLException
ExecutionException

getDocument

public static DomNode getDocument(WebWindow window)
                           throws XPathException
Return the document in the frame given.

Parameters:
frame - The frame.
Returns:
The DOM-like document, or null
Throws:
XPathException
See Also:
DomNode, HtmlPage