public abstract class Action extends Object implements Externalizable
| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_JR_INSERT
Deprecated.
because it was never documented. Use
EVENT_ODK_NEW_REPEAT instead. |
static String |
EVENT_ODK_INSTANCE_FIRST_LOAD
Dispatched the first time a form instance is loaded.
|
static String |
EVENT_ODK_NEW_REPEAT |
static String |
EVENT_QUESTION_VALUE_CHANGED |
static String |
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. Use
EVENT_ODK_INSTANCE_FIRST_LOAD instead. |
static String |
EVENT_XFORMS_REVALIDATE |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
static boolean |
isValidEvent(String actionEventAttribute) |
abstract TreeReference |
processAction(FormDef model,
TreeReference context)
Process actions that were triggered in the form.
|
void |
readExternal(DataInputStream in,
PrototypeFactory pf) |
void |
writeExternal(DataOutputStream out) |
public static final String EVENT_ODK_INSTANCE_FIRST_LOAD
@Deprecated public static final String EVENT_XFORMS_READY
EVENT_ODK_INSTANCE_FIRST_LOAD instead.public static final String EVENT_XFORMS_REVALIDATE
public static final String EVENT_ODK_NEW_REPEAT
public static final String EVENT_JR_INSERT
EVENT_ODK_NEW_REPEAT instead.public static final String EVENT_QUESTION_VALUE_CHANGED
public Action()
public Action(String name)
public String getName()
public abstract TreeReference processAction(FormDef model, TreeReference context)
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException
readExternal in interface ExternalizableIOExceptionDeserializationExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic static boolean isValidEvent(String actionEventAttribute)
Copyright © 2020. All rights reserved.