Uses of Class
org.javarosa.core.model.FormIndex
| Package | Description |
|---|---|
| org.javarosa.core.model | |
| org.javarosa.form.api |
-
Uses of FormIndex in org.javarosa.core.model
Fields in org.javarosa.core.model declared as FormIndex Modifier and Type Field Description FormIndexValidateOutcome. failedPromptMethods in org.javarosa.core.model that return FormIndex Modifier and Type Method Description FormIndexFormDef. buildIndex(List<Integer> indexes, List<Integer> multiplicities, List<IFormElement> elements)static FormIndexFormIndex. createBeginningOfFormIndex()Returns an index before the start of the formstatic FormIndexFormIndex. createEndOfFormIndex()Returns an index after the end of the formFormIndexFormDef. deleteRepeat(FormIndex index)Deletes the inner-most repeat that this node belongs to and returns the corresponding FormIndex.FormIndexFormDef. descendIntoRepeat(FormIndex index, int repIndex)FormIndexFormIndex. diff(FormIndex subIndex)Takes in a form index which is a subset of this index, and returns the total difference between them.FormIndexFormIndex. getNextLevel()FormIndexFormIndex. getTerminal()FormIndexFormIndex. snip()static FormIndexFormIndex. trimNegativeIndices(FormIndex index)Trims any negative indices from the end of the passed in index.Methods in org.javarosa.core.model with parameters of type FormIndex Modifier and Type Method Description booleanFormDef. canCreateRepeat(TreeReference repeatRef, FormIndex repeatIndex)voidFormDef. collapseIndex(FormIndex index, List<Integer> indexes, List<Integer> multiplicities, List<IFormElement> elements)voidFormDef. createNewRepeat(FormIndex index)FormIndexFormDef. deleteRepeat(FormIndex index)Deletes the inner-most repeat that this node belongs to and returns the corresponding FormIndex.FormIndexFormDef. descendIntoRepeat(FormIndex index, int repIndex)FormIndexFormIndex. 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)IFormElementFormDef. getChild(FormIndex index)TreeReferenceFormDef. getChildInstanceRef(FormIndex index)Finds the instance node a reference refers to (factoring in multiplicities)intFormDef. getNumRepetitions(FormIndex index)static booleanFormIndex. isSubElement(FormIndex parent, FormIndex child)static booleanFormIndex. isSubIndex(FormIndex parent, FormIndex child)static FormIndexFormIndex. trimNegativeIndices(FormIndex index)Trims any negative indices from the end of the passed in index.Constructors in org.javarosa.core.model with parameters of type FormIndex Constructor Description 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.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. -
Uses of FormIndex in org.javarosa.form.api
Methods in org.javarosa.form.api that return FormIndex Modifier and Type Method Description FormIndexFormEntryModel. decrementIndex(FormIndex index)FormIndexFormEntryController. deleteRepeat()Deletes a repeated instance of a group referenced by the current FormIndex.FormIndexFormEntryController. deleteRepeat(FormIndex questionIndex)Deletes a repeated instance of a group referenced by the specified FormIndex.FormIndexFormEntryController. descendIntoNewRepeat()FormIndexFormEntryController. descendIntoRepeat(int n)FormIndex[]FormEntryModel. getCompoundIndices()FormIndex[]FormEntryModel. getCompoundIndices(FormIndex container)FormIndexFormEntryModel. getFormIndex()FormIndexFormEntryCaption. getIndex()FormIndexFormEntryModel. incrementIndex(FormIndex index)FormIndexFormEntryModel. incrementIndex(FormIndex index, boolean descend)Methods in org.javarosa.form.api with parameters of type FormIndex Modifier and Type Method Description intFormEntryController. answerQuestion(FormIndex index, IAnswerData data, boolean midSurvey)Attempts to save the answer at the givenFormIndexinto the instance and returns one of three possibleintattempt result codes:FormEntryController.ANSWER_OKFormEntryController.ANSWER_REQUIRED_BUT_EMPTYFormEntryController.ANSWER_CONSTRAINT_VIOLATEDFormIndexFormEntryModel. decrementIndex(FormIndex index)FormIndexFormEntryController. 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 FormIndexFormEntryCaptionFormEntryModel. 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)intFormEntryModel. getEvent(FormIndex index)Given a FormIndex, returns the event this FormIndex represents.FormEntryPromptFormEntryModel. getQuestionPrompt(FormIndex index)protected TreeElementFormEntryModel. getTreeElement(FormIndex index)FormIndexFormEntryModel. incrementIndex(FormIndex index)FormIndexFormEntryModel. incrementIndex(FormIndex index, boolean descend)booleanFormEntryModel. isIndexCompoundContainer(FormIndex index)booleanFormEntryModel. isIndexCompoundElement(FormIndex index)booleanFormEntryModel. isIndexReadonly(FormIndex index)booleanFormEntryModel. isIndexRelevant(FormIndex index)Determine if the current FormIndex is relevant.intFormEntryController. jumpToIndex(FormIndex index)Jumps to a given FormIndex.voidFormEntryController. newRepeat(FormIndex questionIndex)Creates a new repeated instance of the group referenced by the specified FormIndex.booleanFormEntryController. saveAnswer(FormIndex index, IAnswerData data, boolean midSurvey)saveAnswer attempts to save the current answer into the data model without doing any constraint checking.voidFormEntryModel. setQuestionIndex(FormIndex index)Set the FormIndex for the current question.Constructors in org.javarosa.form.api with parameters of type FormIndex Constructor 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.