/** * Creates a FormEntryCaption for the element at the given index in the form. * * @param form * @param index */ public FormEntryCaption(FormDef form, FormIndex index) { this.form = form; this.index = index; this.element = form.getChild(index); this.viewWidget = null; this.textID = this.element.getTextID(); }