Package org.javarosa.core.model.actions
Class Action
java.lang.Object
org.javarosa.core.model.actions.Action
- All Implemented Interfaces:
Externalizable
- Direct Known Subclasses:
SetGeopointAction,SetValueAction
public abstract class Action extends Object implements Externalizable
- Author:
- ctsims
-
Field Summary
Fields Modifier and Type Field Description static StringEVENT_JR_INSERTDeprecated.because it was never documented.static StringEVENT_ODK_INSTANCE_FIRST_LOADDispatched the first time a form instance is loaded.static StringEVENT_ODK_NEW_REPEATstatic StringEVENT_QUESTION_VALUE_CHANGEDstatic StringEVENT_XFORMS_READYDeprecated.because as W3C XForms defines it, it should be dispatched any time the XForms engine is ready.static StringEVENT_XFORMS_REVALIDATE -
Constructor Summary
-
Method Summary
Modifier and Type Method Description StringgetName()static booleanisValidEvent(String actionEventAttribute)abstract TreeReferenceprocessAction(FormDef model, TreeReference context)Process actions that were triggered in the form.voidreadExternal(DataInputStream in, PrototypeFactory pf)voidwriteExternal(DataOutputStream out)
-
Field Details
-
EVENT_ODK_INSTANCE_FIRST_LOAD
Dispatched the first time a form instance is loaded.- See Also:
- Constant Field Values
-
EVENT_XFORMS_READY
Deprecated.because as W3C XForms defines it, it should be dispatched any time the XForms engine is ready. In JavaRosa, it was dispatched only on first load of a form instance. UseEVENT_ODK_INSTANCE_FIRST_LOADinstead.- See Also:
- Constant Field Values
-
EVENT_XFORMS_REVALIDATE
- See Also:
- Constant Field Values
-
EVENT_ODK_NEW_REPEAT
- See Also:
- Constant Field Values
-
EVENT_JR_INSERT
Deprecated.because it was never documented. UseEVENT_ODK_NEW_REPEATinstead.- See Also:
- Constant Field Values
-
EVENT_QUESTION_VALUE_CHANGED
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
getName
-
processAction
Process actions that were triggered in the form. NOTE: Currently actions are only processed on nodes that are WITHIN the context provided, if one is provided. This will need to get changed possibly for future action types.- Returns:
- TreeReference targeted by the action or null if the action wasn't completed.
-
readExternal
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionDeserializationException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
isValidEvent
-