FormEntryCaption class
The texts of a group, repeat or question at a form index: label,
short/media forms and repeat captions, in the current language with
<output>s filled in.
Port of org.javarosa.form.api.FormEntryCaption.
- Implementers
Constructors
- FormEntryCaption(FormDef form, FormIndex index)
-
The caption of the element at
indexinform.
Properties
- appearanceHint → String?
-
The
appearanceattribute.no setter - audioText → String?
-
The label's audio URI, if any.
no setter
- element → FormElement
-
The group, repeat or question.
final
- form → FormDef
-
The form.
final
- formElement → FormElement
-
The group, repeat or question.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageText → String?
-
The label's image URI, if any.
no setter
- index → FormIndex
-
Where the element is.
final
- localizer → Localizer?
-
The form's localizer.
no setter
- longText → String?
-
The label (long form, else default form, else literal label).
no setter
- multiplicity → int
-
The repeat instance index (-1 outside repeats).
no setter
- numRepetitions → int
-
The number of instances of this repeat.
no setter
- repeats → bool
-
Whether the element is a repeat.
no setter
-
repetitionsText
→ List<
String?> -
The header of every instance of this repeat.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortText → String?
-
The short label, falling back to longText.
no setter
- textId → String?
-
The itext id of the label, if localized.
no setter
- viewWidget ↔ QuestionWidget?
-
The widget notified of changes, once registered.
getter/setter pair
Methods
-
itext(
String? textId, String? form) → String? -
The raw itext for
textIdinform(or the default form) in the current language;nullwithout a localizer or text. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
questionText(
[String? textId]) → String? -
The label text for
textId(by default this element's). -
register(
QuestionWidget widget) → void -
Notifies
widgetof state changes until unregister. -
repeatText(
String typeKey) → String? -
A repeat caption:
mainheader,add,add-empty,del,done,done-emptyordelheader, with JavaRosa's English defaults. -
repetitionText(
{required bool newRepeat}) → String? -
The header of this repeat instance, such as
Child 2/3. -
specialFormQuestionText(
String? form, [String? textId]) → String? -
The
formtext form of the label (textIdby default this element's), if any. -
substituteStringArgs(
String? template) → String? -
templatewith its${n}outputs filled in at this index. -
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
) → void - Stops notifying the registered widget.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- textFormAudio → const String
-
The
audioitext form. - textFormImage → const String
-
The
imageitext form. - textFormLong → const String
- The default itext form.
- textFormShort → const String
-
The
shortitext form. - textFormVideo → const String
-
The
videoitext form.