View Javadoc

1   package org.kuali.student.lum.program.client.credential.edit;
2   
3   import org.kuali.student.common.ui.client.configurable.mvc.Configurer;
4   import org.kuali.student.common.ui.client.configurable.mvc.views.VerticalSectionView;
5   import org.kuali.student.common.ui.client.mvc.DataModelDefinition;
6   import org.kuali.student.lum.common.client.configuration.AbstractSectionConfiguration;
7   import org.kuali.student.lum.program.client.AbstractProgramConfigurer;
8   import org.kuali.student.lum.program.client.ProgramConstants;
9   import org.kuali.student.lum.program.client.ProgramMsgConstants;
10  import org.kuali.student.lum.program.client.ProgramSections;
11  import org.kuali.student.lum.program.client.widgets.ProgramDocumentTool;
12  
13  /**
14   * @author Igor
15   */
16  public class CredentialDocsEditConfiguration extends AbstractSectionConfiguration {
17  
18      public CredentialDocsEditConfiguration(Configurer configurer) {
19          this.setConfigurer(configurer);
20          rootSection = new VerticalSectionView(ProgramSections.SUPPORTING_DOCUMENTS_EDIT, getLabel(ProgramMsgConstants.PROGRAM_MENU_SECTIONS_SUPPORTINGDOCUMENTS), 
21                  ProgramConstants.PROGRAM_MODEL_ID);
22      }
23  
24      @Override
25      protected void buildLayout() {
26          ProgramDocumentTool documentTool = new ProgramDocumentTool(ProgramSections.SUPPORTING_DOCUMENTS_EDIT, "Documents");
27          documentTool.setModelDefinition((DataModelDefinition) configurer.getModelDefinition());
28          documentTool.setController(((AbstractProgramConfigurer) configurer).getProgramController());
29          rootSection.addView(documentTool);
30      }
31  }