// title
title = new TitleElement("guidemo.form.title");
addFormElement("title", title);
// text
text = new TextElement("guidemo.form.text", 50);
text.setMandatory(true);
text.setExample("You may give examples for any form field, whcih is shown below the field.");
text.setPopupData(new PopupData("textarea", "popup", "guidemo.gorm.popup", 100, 100));
addFormElement("text", text);
// readonly
readonly = new TextElement("guidemo.form.readonly", 10);
readonly.setValue("readonly");
readonly.setReadOnly(true);
addFormElement("readonly", readonly);
// date chooser
date = new TextElement("guidemo.form.date", 10);
date.setDateChooserDateFormat("%d.%m.%Y");
date.setUseDateChooser(true);
date.setExample("Format: dd.mm.yyyy [e.g. 17.04.2007]");
addFormElement("date", date);