Back to index
|nsXFormsActionModuleHelper provides the foundation that allows event iteration to work. |
|virtual nsIDOMElement *||GetElement ()=0|
|void||SetCurrentEvent (nsIDOMEvent *aEvent)|
|virtual nsresult||HandleSingleAction (nsIDOMEvent *aEvent, nsIXFormsActionElement *aParentAction)=0|
|With the |
|This signals whether or not this action can iterate. |
|nsCOMPtr< nsIDOMEvent >||mCurrentEvent|
|The event currently being processed. |
nsXFormsActionModuleHelper provides the foundation that allows event iteration to work.
Every xforms action needs to inherit from nsXFormsActionModuleHelper in some capacity; they can inherit indirectly through nsXFormsActionModuleBase or directly from nsXFormsActionModuleHelper in the cases where the action actually needs to have binding capabilities (like nsXFormsAlertElement, etc)
|virtual nsresult nsXFormsActionModuleHelper::HandleSingleAction||(||nsIDOMEvent *||aEvent,|
while attribute, actions can potentially be iterated.
HandleSingleAction method processes one iteration of an action (that is, the "body" of the action); it should be dispatched by the
HandleAction method, which manages the conditional execution and iteration of the action.
Implemented in nsXFormsMessageElement, nsXFormsInsertDeleteElement, nsXFormsActionElement, nsXFormsSetIndexElement, nsXFormsSetValueElement, nsXFormsToggleElement, nsXFormsDispatchElement, nsXFormsLoadElement, nsXFormsSetFocusElement, nsXFormsSendElement, nsXFormsRebuildElement, nsXFormsRecalculateElement, nsXFormsRefreshElement, nsXFormsResetElement, and nsXFormsRevalidateElement.
This signals whether or not this action can iterate.
Technically, all XForms 1.1 actions are allowed to iterate, but for some of them it may not make sense. Currently, this is set to PR_TRUE for all actions, but we can optionally disable iteration for specific actions based upon additional information in the future.