Program: 69577
Project: 69577
Buggy source:
@Override protected void initForm(FormItemContainer formLayout,Controller listener,UserRequest ureq){
  limitAttempts=uifactory.addCheckboxesVertical("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null},1);
  Integer confAttempts=(Integer)modConfig.get(IQEditController.CONFIG_KEY_ATTEMPTS);
  if (confAttempts == null)   confAttempts=new Integer(0);
  attempts=uifactory.addIntegerElement("String_Node_Str",confAttempts,formLayout);
  attempts.setDisplaySize(2);
  attempts.setMinValueCheck(1,null);
  attempts.setMaxValueCheck(20,null);
  blockAfterSuccess=uifactory.addCheckboxesVertical("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null},1);
  Boolean block=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_BLOCK_AFTER_SUCCESS);
  blockAfterSuccess.select("String_Node_Str",block == null ? false : block.booleanValue());
  uifactory.addSpacerElement("String_Node_Str",formLayout,true);
  if (isAssessment) {
    limitAttempts.select("String_Node_Str",confAttempts > 0);
    limitAttempts.addActionListener(FormEvent.ONCLICK);
  }
 else {
    limitAttempts.select("String_Node_Str",false);
    limitAttempts.setVisible(false);
    attempts.setVisible(false);
    blockAfterSuccess.select("String_Node_Str",false);
    blockAfterSuccess.setVisible(false);
  }
  Boolean fullWindow=(Boolean)modConfig.get(IQEditController.CONFIG_FULLWINDOW);
  fullWindowEl=uifactory.addCheckboxesVertical("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null},1);
  fullWindowEl.select("String_Node_Str",fullWindow == null ? true : fullWindow.booleanValue());
  Boolean CdisplayMenu=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_DISPLAYMENU);
  displayMenu=uifactory.addCheckboxesVertical("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null},1);
  displayMenu.select("String_Node_Str",CdisplayMenu == null ? true : CdisplayMenu);
  displayMenu.addActionListener(FormEvent.ONCLICK);
  Boolean CenableMenu=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_ENABLEMENU);
  enableMenu=uifactory.addCheckboxesVertical("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null},1);
  enableMenu.select("String_Node_Str",CenableMenu == null ? true : CenableMenu);
  menuRenderOptions=uifactory.addRadiosVertical("String_Node_Str","String_Node_Str",formLayout,menuRenderOptKeys,menuRenderOptValues);
  menuRenderOptions.setVisible(displayMenu.isSelected(0));
  Boolean renderSectionsOnly;
  if (modConfig.get(IQEditController.CONFIG_KEY_RENDERMENUOPTION) == null) {
    modConfig.set(IQEditController.CONFIG_KEY_RENDERMENUOPTION,Boolean.FALSE);
    renderSectionsOnly=Boolean.FALSE;
  }
 else {
    renderSectionsOnly=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_RENDERMENUOPTION);
  }
  menuRenderOptions.select(renderSectionsOnly.toString(),true);
  menuRenderOptions.addActionListener(FormEvent.ONCLICK);
  sequence=uifactory.addRadiosVertical("String_Node_Str","String_Node_Str",formLayout,sequenceKeys,sequenceValues);
  String confSequence=(String)modConfig.get(IQEditController.CONFIG_KEY_SEQUENCE);
  if (confSequence == null)   confSequence=AssessmentInstance.QMD_ENTRY_SEQUENCE_ITEM;
  sequence.select(confSequence,true);
  sequence.addActionListener(FormEvent.ONCLICK);
  if (renderSectionsOnly)   confSequence=AssessmentInstance.QMD_ENTRY_SEQUENCE_SECTION;
  sequence.setEnabled(!renderSectionsOnly);
  Boolean bDisplayQuestionTitle=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_QUESTIONTITLE);
  boolean confDisplayQuestionTitle=(bDisplayQuestionTitle != null) ? bDisplayQuestionTitle.booleanValue() : true;
  displayQuestionTitle=uifactory.addCheckboxesVertical("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null},1);
  displayQuestionTitle.select("String_Node_Str",confDisplayQuestionTitle);
  Boolean bAutoEnum=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_AUTOENUM_CHOICES);
  boolean confAutoEnum=(bAutoEnum != null) ? bAutoEnum.booleanValue() : false;
  autoEnumerateChoices=uifactory.addCheckboxesVertical("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null},1);
  autoEnumerateChoices.select("String_Node_Str",confAutoEnum);
  Boolean bMemo=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_MEMO);
  boolean confMemo=(bMemo != null) ? bMemo.booleanValue() : false;
  provideMemoField=uifactory.addCheckboxesVertical("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null},1);
  provideMemoField.select("String_Node_Str",confMemo);
  Boolean bEnableQuestionProgress=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_QUESTIONPROGRESS);
  boolean confEnableQuestionProgress=(bEnableQuestionProgress != null) ? bEnableQuestionProgress.booleanValue() : true;
  displayQuestionProgress=uifactory.addCheckboxesVertical("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null},1);
  displayQuestionProgress.select("String_Node_Str",confEnableQuestionProgress);
  displayQuestionProgress.setVisible(!isSurvey);
  Boolean bEnableScoreProgress=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_SCOREPROGRESS);
  boolean confEnableScoreProgress=(bEnableScoreProgress != null) ? bEnableScoreProgress.booleanValue() : true;
  displayScoreProgress=uifactory.addCheckboxesVertical("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null},1);
  if (isAssessment || isSelfTest) {
    displayScoreProgress.select("String_Node_Str",confEnableScoreProgress);
  }
 else {
    displayScoreProgress.select("String_Node_Str",false);
    displayScoreProgress.setEnabled(false);
    displayScoreProgress.setVisible(false);
  }
  Boolean bEnableCancel=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_ENABLECANCEL);
  boolean confEnableCancel=true;
  if (bEnableCancel != null) {
    confEnableCancel=bEnableCancel.booleanValue();
  }
 else {
    if (configKeyType != null && configKeyType.equals(AssessmentInstance.QMD_ENTRY_TYPE_ASSESS))     confEnableCancel=false;
  }
  enableCancel=uifactory.addCheckboxesVertical("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null},1);
  enableCancel.select("String_Node_Str",confEnableCancel);
  if (isSelfTest) {
    enableCancel.select("String_Node_Str",true);
    enableCancel.setVisible(false);
    enableCancel.setEnabled(false);
  }
  Boolean bEnableSuspend=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_ENABLESUSPEND);
  boolean confEnableSuspend=(bEnableSuspend != null) ? bEnableSuspend.booleanValue() : false;
  enableSuspend=uifactory.addCheckboxesVertical("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null},1);
  enableSuspend.select("String_Node_Str",confEnableSuspend);
  uifactory.addSpacerElement("String_Node_Str",formLayout,true);
  Boolean bEnableScoreInfos=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_ENABLESCOREINFO);
  boolean enableScoreInfos=(bEnableScoreInfos != null) ? bEnableScoreInfos.booleanValue() : true;
  scoreInfo=uifactory.addCheckboxesVertical("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null},1);
  scoreInfo.select("String_Node_Str",enableScoreInfos);
  if (isAssessment || isSelfTest) {
    scoreInfo.select("String_Node_Str",enableScoreInfos);
    scoreInfo.addActionListener(FormEvent.ONCLICK);
  }
 else {
    scoreInfo.setVisible(false);
  }
  String configuredSummary=(String)modConfig.get(IQEditController.CONFIG_KEY_SUMMARY);
  boolean noSummary=configuredSummary != null && configuredSummary.equals(AssessmentInstance.QMD_ENTRY_SUMMARY_NONE) ? true : false;
  Boolean showResultOnHomePage=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_RESULT_ON_HOME_PAGE);
  boolean confEnableShowResultOnHomePage=(showResultOnHomePage != null) ? showResultOnHomePage.booleanValue() : false;
  confEnableShowResultOnHomePage=!noSummary && confEnableShowResultOnHomePage;
  showResultsOnHomePage=uifactory.addCheckboxesVertical("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null},1);
  showResultsOnHomePage.select("String_Node_Str",confEnableShowResultOnHomePage);
  showResultsOnHomePage.addActionListener(FormEvent.ONCLICK);
  showResultsOnHomePage.setVisible(!isSurvey);
  Boolean showResultsActive=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_DATE_DEPENDENT_RESULTS);
  boolean showResultsDateDependent=false;
  if (showResultsActive != null) {
    showResultsDateDependent=showResultsActive.booleanValue();
  }
  showResultsDateDependentButton=uifactory.addCheckboxesVertical("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null},1);
  if (isAssessment || isSelfTest) {
    showResultsDateDependentButton.select("String_Node_Str",showResultsDateDependent);
    showResultsDateDependentButton.addActionListener(FormEvent.ONCLICK);
  }
 else {
    showResultsDateDependentButton.setEnabled(false);
  }
  Date startDate=(Date)modConfig.get(IQEditController.CONFIG_KEY_RESULTS_START_DATE);
  startDateElement=uifactory.addDateChooser("String_Node_Str","String_Node_Str",null,formLayout);
  startDateElement.setDateChooserTimeEnabled(true);
  startDateElement.setDate(startDate);
  startDateElement.setMandatory(true);
  Date endDate=(Date)modConfig.get(IQEditController.CONFIG_KEY_RESULTS_END_DATE);
  endDateElement=uifactory.addDateChooser("String_Node_Str","String_Node_Str",null,formLayout);
  endDateElement.setDateChooserTimeEnabled(true);
  endDateElement.setDate(endDate);
  Boolean showResultOnFinish=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_RESULT_ON_FINISH);
  boolean confEnableShowResultOnFinish=(showResultOnFinish != null) ? showResultOnFinish.booleanValue() : true;
  confEnableShowResultOnFinish=!noSummary && confEnableShowResultOnFinish;
  showResultsAfterFinishTest=uifactory.addCheckboxesVertical("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null},1);
  showResultsAfterFinishTest.select("String_Node_Str",confEnableShowResultOnFinish);
  showResultsAfterFinishTest.addActionListener(FormEvent.ONCLICK);
  showResultsAfterFinishTest.setVisible(!isSurvey);
  String[] summaryKeys=new String[]{AssessmentInstance.QMD_ENTRY_SUMMARY_COMPACT,AssessmentInstance.QMD_ENTRY_SUMMARY_SECTION,AssessmentInstance.QMD_ENTRY_SUMMARY_DETAILED};
  String[] summaryValues=new String[]{translate("String_Node_Str"),translate("String_Node_Str"),translate("String_Node_Str")};
  summary=uifactory.addRadiosVertical("String_Node_Str","String_Node_Str",formLayout,summaryKeys,summaryValues);
  String confSummary=(String)modConfig.get(IQEditController.CONFIG_KEY_SUMMARY);
  uifactory.addSpacerElement("String_Node_Str",formLayout,true);
  if (confSummary == null || noSummary) {
    confSummary=AssessmentInstance.QMD_ENTRY_SUMMARY_COMPACT;
  }
  if (isAssessment || isSelfTest) {
    summary.select(confSummary,true);
  }
 else {
    summary.setEnabled(false);
  }
  uifactory.addSpacerElement("String_Node_Str",formLayout,true);
  uifactory.addFormSubmitButton("String_Node_Str",formLayout);
  update();
}

Fixed version (ground truth):
@Override protected void initForm(FormItemContainer formLayout,Controller listener,UserRequest ureq){
  limitAttempts=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  Integer confAttempts=(Integer)modConfig.get(IQEditController.CONFIG_KEY_ATTEMPTS);
  if (confAttempts == null)   confAttempts=new Integer(0);
  attempts=uifactory.addIntegerElement("String_Node_Str",confAttempts,formLayout);
  attempts.setDisplaySize(2);
  attempts.setMinValueCheck(1,null);
  attempts.setMaxValueCheck(20,null);
  blockAfterSuccess=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  Boolean block=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_BLOCK_AFTER_SUCCESS);
  blockAfterSuccess.select("String_Node_Str",block == null ? false : block.booleanValue());
  uifactory.addSpacerElement("String_Node_Str",formLayout,true);
  if (isAssessment) {
    limitAttempts.select("String_Node_Str",confAttempts > 0);
    limitAttempts.addActionListener(FormEvent.ONCLICK);
  }
 else {
    limitAttempts.select("String_Node_Str",false);
    limitAttempts.setVisible(false);
    attempts.setVisible(false);
    blockAfterSuccess.select("String_Node_Str",false);
    blockAfterSuccess.setVisible(false);
  }
  Boolean fullWindow=(Boolean)modConfig.get(IQEditController.CONFIG_FULLWINDOW);
  fullWindowEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  fullWindowEl.select("String_Node_Str",fullWindow == null ? true : fullWindow.booleanValue());
  Boolean CdisplayMenu=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_DISPLAYMENU);
  displayMenu=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  displayMenu.select("String_Node_Str",CdisplayMenu == null ? true : CdisplayMenu);
  displayMenu.addActionListener(FormEvent.ONCLICK);
  Boolean CenableMenu=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_ENABLEMENU);
  enableMenu=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  enableMenu.select("String_Node_Str",CenableMenu == null ? true : CenableMenu);
  menuRenderOptions=uifactory.addRadiosVertical("String_Node_Str","String_Node_Str",formLayout,menuRenderOptKeys,menuRenderOptValues);
  menuRenderOptions.setVisible(displayMenu.isSelected(0));
  Boolean renderSectionsOnly;
  if (modConfig.get(IQEditController.CONFIG_KEY_RENDERMENUOPTION) == null) {
    modConfig.set(IQEditController.CONFIG_KEY_RENDERMENUOPTION,Boolean.FALSE);
    renderSectionsOnly=Boolean.FALSE;
  }
 else {
    renderSectionsOnly=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_RENDERMENUOPTION);
  }
  menuRenderOptions.select(renderSectionsOnly.toString(),true);
  menuRenderOptions.addActionListener(FormEvent.ONCLICK);
  sequence=uifactory.addRadiosVertical("String_Node_Str","String_Node_Str",formLayout,sequenceKeys,sequenceValues);
  String confSequence=(String)modConfig.get(IQEditController.CONFIG_KEY_SEQUENCE);
  if (confSequence == null)   confSequence=AssessmentInstance.QMD_ENTRY_SEQUENCE_ITEM;
  sequence.select(confSequence,true);
  sequence.addActionListener(FormEvent.ONCLICK);
  if (renderSectionsOnly)   confSequence=AssessmentInstance.QMD_ENTRY_SEQUENCE_SECTION;
  sequence.setEnabled(!renderSectionsOnly);
  Boolean bDisplayQuestionTitle=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_QUESTIONTITLE);
  boolean confDisplayQuestionTitle=(bDisplayQuestionTitle != null) ? bDisplayQuestionTitle.booleanValue() : true;
  displayQuestionTitle=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  displayQuestionTitle.select("String_Node_Str",confDisplayQuestionTitle);
  Boolean bAutoEnum=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_AUTOENUM_CHOICES);
  boolean confAutoEnum=(bAutoEnum != null) ? bAutoEnum.booleanValue() : false;
  autoEnumerateChoices=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  autoEnumerateChoices.select("String_Node_Str",confAutoEnum);
  Boolean bMemo=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_MEMO);
  boolean confMemo=(bMemo != null) ? bMemo.booleanValue() : false;
  provideMemoField=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  provideMemoField.select("String_Node_Str",confMemo);
  Boolean bEnableQuestionProgress=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_QUESTIONPROGRESS);
  boolean confEnableQuestionProgress=(bEnableQuestionProgress != null) ? bEnableQuestionProgress.booleanValue() : true;
  displayQuestionProgress=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  displayQuestionProgress.select("String_Node_Str",confEnableQuestionProgress);
  displayQuestionProgress.setVisible(!isSurvey);
  Boolean bEnableScoreProgress=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_SCOREPROGRESS);
  boolean confEnableScoreProgress=(bEnableScoreProgress != null) ? bEnableScoreProgress.booleanValue() : true;
  displayScoreProgress=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  if (isAssessment || isSelfTest) {
    displayScoreProgress.select("String_Node_Str",confEnableScoreProgress);
  }
 else {
    displayScoreProgress.select("String_Node_Str",false);
    displayScoreProgress.setEnabled(false);
    displayScoreProgress.setVisible(false);
  }
  Boolean bEnableCancel=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_ENABLECANCEL);
  boolean confEnableCancel=true;
  if (bEnableCancel != null) {
    confEnableCancel=bEnableCancel.booleanValue();
  }
 else {
    if (configKeyType != null && configKeyType.equals(AssessmentInstance.QMD_ENTRY_TYPE_ASSESS))     confEnableCancel=false;
  }
  enableCancel=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  enableCancel.select("String_Node_Str",confEnableCancel);
  if (isSelfTest) {
    enableCancel.select("String_Node_Str",true);
    enableCancel.setVisible(false);
    enableCancel.setEnabled(false);
  }
  Boolean bEnableSuspend=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_ENABLESUSPEND);
  boolean confEnableSuspend=(bEnableSuspend != null) ? bEnableSuspend.booleanValue() : false;
  enableSuspend=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  enableSuspend.select("String_Node_Str",confEnableSuspend);
  uifactory.addSpacerElement("String_Node_Str",formLayout,true);
  Boolean bEnableScoreInfos=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_ENABLESCOREINFO);
  boolean enableScoreInfos=(bEnableScoreInfos != null) ? bEnableScoreInfos.booleanValue() : true;
  scoreInfo=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  scoreInfo.select("String_Node_Str",enableScoreInfos);
  if (isAssessment || isSelfTest) {
    scoreInfo.select("String_Node_Str",enableScoreInfos);
    scoreInfo.addActionListener(FormEvent.ONCLICK);
  }
 else {
    scoreInfo.setVisible(false);
  }
  String configuredSummary=(String)modConfig.get(IQEditController.CONFIG_KEY_SUMMARY);
  boolean noSummary=configuredSummary != null && configuredSummary.equals(AssessmentInstance.QMD_ENTRY_SUMMARY_NONE) ? true : false;
  Boolean showResultOnHomePage=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_RESULT_ON_HOME_PAGE);
  boolean confEnableShowResultOnHomePage=(showResultOnHomePage != null) ? showResultOnHomePage.booleanValue() : false;
  confEnableShowResultOnHomePage=!noSummary && confEnableShowResultOnHomePage;
  showResultsOnHomePage=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  showResultsOnHomePage.select("String_Node_Str",confEnableShowResultOnHomePage);
  showResultsOnHomePage.addActionListener(FormEvent.ONCLICK);
  showResultsOnHomePage.setVisible(!isSurvey);
  Boolean showResultsActive=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_DATE_DEPENDENT_RESULTS);
  boolean showResultsDateDependent=false;
  if (showResultsActive != null) {
    showResultsDateDependent=showResultsActive.booleanValue();
  }
  showResultsDateDependentButton=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  if (isAssessment || isSelfTest) {
    showResultsDateDependentButton.select("String_Node_Str",showResultsDateDependent);
    showResultsDateDependentButton.addActionListener(FormEvent.ONCLICK);
  }
 else {
    showResultsDateDependentButton.setEnabled(false);
  }
  Date startDate=(Date)modConfig.get(IQEditController.CONFIG_KEY_RESULTS_START_DATE);
  startDateElement=uifactory.addDateChooser("String_Node_Str","String_Node_Str",null,formLayout);
  startDateElement.setDateChooserTimeEnabled(true);
  startDateElement.setDate(startDate);
  startDateElement.setMandatory(true);
  Date endDate=(Date)modConfig.get(IQEditController.CONFIG_KEY_RESULTS_END_DATE);
  endDateElement=uifactory.addDateChooser("String_Node_Str","String_Node_Str",null,formLayout);
  endDateElement.setDateChooserTimeEnabled(true);
  endDateElement.setDate(endDate);
  Boolean showResultOnFinish=(Boolean)modConfig.get(IQEditController.CONFIG_KEY_RESULT_ON_FINISH);
  boolean confEnableShowResultOnFinish=(showResultOnFinish != null) ? showResultOnFinish.booleanValue() : true;
  confEnableShowResultOnFinish=!noSummary && confEnableShowResultOnFinish;
  showResultsAfterFinishTest=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  showResultsAfterFinishTest.select("String_Node_Str",confEnableShowResultOnFinish);
  showResultsAfterFinishTest.addActionListener(FormEvent.ONCLICK);
  showResultsAfterFinishTest.setVisible(!isSurvey);
  String[] summaryKeys=new String[]{AssessmentInstance.QMD_ENTRY_SUMMARY_COMPACT,AssessmentInstance.QMD_ENTRY_SUMMARY_SECTION,AssessmentInstance.QMD_ENTRY_SUMMARY_DETAILED};
  String[] summaryValues=new String[]{translate("String_Node_Str"),translate("String_Node_Str"),translate("String_Node_Str")};
  summary=uifactory.addRadiosVertical("String_Node_Str","String_Node_Str",formLayout,summaryKeys,summaryValues);
  String confSummary=(String)modConfig.get(IQEditController.CONFIG_KEY_SUMMARY);
  uifactory.addSpacerElement("String_Node_Str",formLayout,true);
  if (confSummary == null || noSummary) {
    confSummary=AssessmentInstance.QMD_ENTRY_SUMMARY_COMPACT;
  }
  if (isAssessment || isSelfTest) {
    summary.select(confSummary,true);
  }
 else {
    summary.setEnabled(false);
  }
  uifactory.addSpacerElement("String_Node_Str",formLayout,true);
  uifactory.addFormSubmitButton("String_Node_Str",formLayout);
  update();
}