| 1 | |
package org.kuali.student.lum.program.client.major.edit; |
| 2 | |
|
| 3 | |
import org.kuali.student.common.ui.client.configurable.mvc.sections.GroupSection; |
| 4 | |
import org.kuali.student.common.ui.client.configurable.mvc.views.VerticalSectionView; |
| 5 | |
import org.kuali.student.common.ui.client.widgets.field.layout.element.MessageKeyInfo; |
| 6 | |
import org.kuali.student.lum.common.client.configuration.AbstractSectionConfiguration; |
| 7 | |
import org.kuali.student.lum.program.client.ProgramConstants; |
| 8 | |
import org.kuali.student.lum.program.client.ProgramSections; |
| 9 | |
import org.kuali.student.lum.program.client.properties.ProgramProperties; |
| 10 | |
|
| 11 | |
public class CatalogInformationEditConfiguration extends AbstractSectionConfiguration { |
| 12 | |
|
| 13 | 0 | public CatalogInformationEditConfiguration() { |
| 14 | 0 | rootSection = new VerticalSectionView(ProgramSections.CATALOG_INFO_EDIT, ProgramProperties.get().program_menu_sections_catalogInfo(), ProgramConstants.PROGRAM_MODEL_ID); |
| 15 | 0 | } |
| 16 | |
|
| 17 | |
@Override |
| 18 | |
protected void buildLayout() { |
| 19 | 0 | configurer.addField(rootSection, ProgramConstants.DESCRIPTION + "/plain", new MessageKeyInfo(ProgramProperties.get().catalogInformation_descr())); |
| 20 | 0 | configurer.addField(rootSection, ProgramConstants.CATALOG_DESCRIPTION + "/plain", new MessageKeyInfo(ProgramProperties.get().catalogInformation_catalogDescr())); |
| 21 | 0 | configurer.addField(rootSection, ProgramConstants.CORE_FACULTY_MEMBERS, new MessageKeyInfo(ProgramProperties.get().catalogInformation_publishedInstructors())); |
| 22 | 0 | configurer.addField(rootSection, ProgramConstants.PUBLICATION_TARGETS, new MessageKeyInfo(ProgramProperties.get().catalogInformation_catalogPublicationTargets())); |
| 23 | 0 | configurer.addField(rootSection, ProgramConstants.FULL_PART_TIME, new MessageKeyInfo(ProgramProperties.get().catalogInformation_intensity())); |
| 24 | 0 | GroupSection duration_group = new GroupSection(); |
| 25 | 0 | configurer.addField(duration_group, ProgramConstants.DURATION + "/atpDurationTypeKey", new MessageKeyInfo(ProgramProperties.get().catalogInformation_stdDuration())); |
| 26 | 0 | configurer.addField(duration_group, ProgramConstants.DURATION + "/timeQuantity", new MessageKeyInfo(ProgramProperties.get().catalogInformation_durationCount())); |
| 27 | 0 | rootSection.addSection(duration_group); |
| 28 | 0 | configurer.addField(rootSection, ProgramConstants.DURATION_NOTES, new MessageKeyInfo(ProgramProperties.get().catalogInformation_durationNotes())); |
| 29 | 0 | configurer.addField(rootSection, ProgramConstants.MORE_INFORMATION, new MessageKeyInfo(ProgramProperties.get().catalogInformation_referenceUrl())); |
| 30 | 0 | } |
| 31 | |
} |