public Canvas getViewPanel() {
final DynamicForm form = new DynamicForm();
form.setWidth(300);
TextItem caseNumber = new TextItem("case", "Case #");
caseNumber.setWidth(130);
caseNumber.setHint("Enter case number");
caseNumber.setShowHintInField(true);
FormItemIcon icon = new FormItemIcon();
icon.setSrc("[SKIN]/actions/help.png");
final StaticTextItem severityLevel = new StaticTextItem();
severityLevel.setName("severityLevel");
severityLevel.setTitle("Severity Level");
severityLevel.setDefaultValue("Severity 2");
severityLevel.setIcons(icon);
severityLevel.addIconClickHandler(new IconClickHandler() {
public void onIconClick(IconClickEvent event) {
SC.say(HELPTEXT);
}
});
final TextItem dueDate = new TextItem("dueDate", "Due Date");
dueDate.setWidth(70);
dueDate.setHint("MM/YYYY");
form.setFields(caseNumber, severityLevel, dueDate);
return form;
}