| Package | Description |
|---|---|
| org.javarosa.core.model | |
| org.javarosa.form.api |
| Modifier and Type | Field and Description |
|---|---|
FormIndex |
ValidateOutcome.failedPrompt |
| Modifier and Type | Method and Description |
|---|---|
FormIndex |
FormDef.buildIndex(List<Integer> indexes,
List<Integer> multiplicities,
List<IFormElement> elements) |
static FormIndex |
FormIndex.createBeginningOfFormIndex()
Returns an index before the start of the form
|
static FormIndex |
FormIndex.createEndOfFormIndex()
Returns an index after the end of the form
|
FormIndex |
FormDef.deleteRepeat(FormIndex index)
Deletes the inner-most repeat that this node belongs to and returns the
corresponding FormIndex.
|
FormIndex |
FormDef.descendIntoRepeat(FormIndex index,
int repIndex) |
FormIndex |
FormIndex.diff(FormIndex subIndex)
Takes in a form index which is a subset of this index, and returns the
total difference between them.
|
FormIndex |
FormIndex.getNextLevel() |
FormIndex |
FormIndex.getPreviousLevel() |
FormIndex |
FormIndex.getTerminal() |
FormIndex |
FormIndex.snip() |
static FormIndex |
FormIndex.trimNegativeIndices(FormIndex index)
Trims any negative indices from the end of the passed in index.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
FormDef.canCreateRepeat(TreeReference repeatRef,
FormIndex repeatIndex) |
void |
FormDef.collapseIndex(FormIndex index,
List<Integer> indexes,
List<Integer> multiplicities,
List<IFormElement> elements) |
void |
FormDef.createNewRepeat(FormIndex index) |
FormIndex |
FormDef.deleteRepeat(FormIndex index)
Deletes the inner-most repeat that this node belongs to and returns the
corresponding FormIndex.
|
FormIndex |
FormDef.descendIntoRepeat(FormIndex index,
int repIndex) |
FormIndex |
FormIndex.diff(FormIndex subIndex)
Takes in a form index which is a subset of this index, and returns the
total difference between them.
|
List<IFormElement> |
FormDef.explodeIndex(FormIndex index)
Dereference the form index and return a List of all interstitial nodes
(top-level parent first; index target last)
Ignore 'new-repeat' node for now; just return/stop at ref to
yet-to-be-created repeat node (similar to repeats that already exist)
|
IFormElement |
FormDef.getChild(FormIndex index) |
TreeReference |
FormDef.getChildInstanceRef(FormIndex index)
Finds the instance node a reference refers to (factoring in multiplicities)
|
int |
FormDef.getNumRepetitions(FormIndex index) |
static boolean |
FormIndex.isSubElement(FormIndex parent,
FormIndex child) |
static boolean |
FormIndex.isSubIndex(FormIndex parent,
FormIndex child) |
static FormIndex |
FormIndex.trimNegativeIndices(FormIndex index)
Trims any negative indices from the end of the passed in index.
|
| Constructor and Description |
|---|
FormIndex(FormIndex nextLevel,
FormIndex currentLevel)
Constructs an index which references an element past the level of
specificity of the current context, founded by the currentLevel
index.
|
FormIndex(FormIndex nextLevel,
int localIndex,
int instanceIndex,
TreeReference reference)
Constructs a @{code FormIndex} for a node that has children and that may have repeat instances in a filled form.
|
FormIndex(FormIndex nextLevel,
int localIndex,
TreeReference reference)
Constructs a @{code FormIndex} for a node that has children.
|
| Modifier and Type | Method and Description |
|---|---|
FormIndex |
FormEntryModel.decrementIndex(FormIndex index) |
FormIndex |
FormEntryController.deleteRepeat()
Deletes a repeated instance of a group referenced by the current
FormIndex.
|
FormIndex |
FormEntryController.deleteRepeat(FormIndex questionIndex)
Deletes a repeated instance of a group referenced by the specified
FormIndex.
|
FormIndex |
FormEntryController.descendIntoNewRepeat() |
FormIndex |
FormEntryController.descendIntoRepeat(int n) |
FormIndex[] |
FormEntryModel.getCompoundIndices() |
FormIndex[] |
FormEntryModel.getCompoundIndices(FormIndex container) |
FormIndex |
FormEntryModel.getFormIndex() |
FormIndex |
FormEntryCaption.getIndex() |
FormIndex |
FormEntryModel.incrementIndex(FormIndex index) |
FormIndex |
FormEntryModel.incrementIndex(FormIndex index,
boolean descend) |
| Modifier and Type | Method and Description |
|---|---|
int |
FormEntryController.answerQuestion(FormIndex index,
IAnswerData data,
boolean midSurvey)
Attempts to save the answer at the given
FormIndex into the instance
and returns one of three possible int attempt result codes:
FormEntryController.ANSWER_OK
FormEntryController.ANSWER_REQUIRED_BUT_EMPTY
FormEntryController.ANSWER_CONSTRAINT_VIOLATED
|
FormIndex |
FormEntryModel.decrementIndex(FormIndex index) |
FormIndex |
FormEntryController.deleteRepeat(FormIndex questionIndex)
Deletes a repeated instance of a group referenced by the specified
FormIndex.
|
FormEntryCaption[] |
FormEntryModel.getCaptionHierarchy(FormIndex index)
Returns a hierarchical list of FormEntryCaption objects for the given
FormIndex
|
FormEntryCaption |
FormEntryModel.getCaptionPrompt(FormIndex index)
When you have a non-question event, a CaptionPrompt will have all the
information needed to display to the user.
|
FormIndex[] |
FormEntryModel.getCompoundIndices(FormIndex container) |
int |
FormEntryModel.getEvent(FormIndex index)
Given a FormIndex, returns the event this FormIndex represents.
|
FormEntryPrompt |
FormEntryModel.getQuestionPrompt(FormIndex index) |
protected TreeElement |
FormEntryModel.getTreeElement(FormIndex index) |
FormIndex |
FormEntryModel.incrementIndex(FormIndex index) |
FormIndex |
FormEntryModel.incrementIndex(FormIndex index,
boolean descend) |
boolean |
FormEntryModel.isIndexCompoundContainer(FormIndex index) |
boolean |
FormEntryModel.isIndexCompoundElement(FormIndex index) |
boolean |
FormEntryModel.isIndexReadonly(FormIndex index) |
boolean |
FormEntryModel.isIndexRelevant(FormIndex index)
Determine if the current FormIndex is relevant.
|
int |
FormEntryController.jumpToIndex(FormIndex index)
Jumps to a given FormIndex.
|
void |
FormEntryController.newRepeat(FormIndex questionIndex)
Creates a new repeated instance of the group referenced by the specified
FormIndex.
|
boolean |
FormEntryController.saveAnswer(FormIndex index,
IAnswerData data,
boolean midSurvey)
saveAnswer attempts to save the current answer into the data model
without doing any constraint checking.
|
void |
FormEntryModel.setQuestionIndex(FormIndex index)
Set the FormIndex for the current question.
|
| Constructor and Description |
|---|
FormEntryCaption(FormDef form,
FormIndex index)
Creates a FormEntryCaption for the element at the given index in the form.
|
FormEntryPrompt(FormDef form,
FormIndex index)
Creates a FormEntryPrompt for the element at the given index in the form.
|
Copyright © 2023. All rights reserved.