1 package org.kuali.student.lum.common.client.configuration;
2
3 import com.google.gwt.user.client.ui.Widget;
4
5 import org.kuali.student.common.ui.client.configurable.mvc.views.SectionView;
6 import org.kuali.student.common.ui.client.mvc.View;
7
8
9
10
11 public abstract class AbstractSectionConfiguration extends AbstractConfiguration {
12
13 protected SectionView rootSection;
14
15 @Override
16 public View getView() {
17 return getView(true);
18 }
19
20 public View getView(boolean build) {
21 if (build) {
22 buildLayout();
23 }
24 return rootSection;
25 }
26
27 protected abstract void buildLayout();
28
29 @Override
30 public Widget asWidget() {
31 return rootSection;
32 }
33
34 @Override
35 public Enum<?> getName() {
36 return rootSection.getViewEnum();
37 }
38 }