1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.common.ui.client.configurable.mvc.sections;
17
18 import java.util.List;
19
20 import org.kuali.student.common.ui.client.configurable.mvc.FieldDescriptor;
21 import org.kuali.student.common.ui.client.configurable.mvc.HasLayoutController;
22 import org.kuali.student.common.ui.client.mvc.DataModel;
23 import org.kuali.student.common.ui.client.widgets.field.layout.layouts.FieldLayout;
24 import org.kuali.student.common.validation.dto.ValidationResultInfo;
25 import org.kuali.student.common.validation.dto.ValidationResultInfo.ErrorLevel;
26
27 import com.google.gwt.user.client.ui.Widget;
28
29
30
31
32
33
34
35
36
37 public interface Section extends HasLayoutController{
38
39 public String addField(FieldDescriptor field);
40 public String addSection(Section section);
41 public String addSection(String key, Section section);
42 public FieldLayout getLayout();
43 public void removeField(String fieldKey);
44 public void removeSection(String sectionKey);
45 public void removeSection(Section section);
46 public void removeField(FieldDescriptor field);
47 public FieldDescriptor getField(String fieldKey);
48 public Section getSection(String sectionKey);
49 public List<FieldDescriptor> getUnnestedFields();
50 public String addWidget(Widget widget);
51 public void removeWidget(Widget widget);
52 public void removeWidget(String key);
53 public void resetFieldInteractionFlags();
54 public void setFieldHasHadFocusFlags(boolean hadFocus);
55 public void updateWidgetData(DataModel model);
56 public void updateModel(DataModel model);
57 public List<FieldDescriptor> getFields();
58 public List<Section> getSections();
59 public void enableValidation(boolean enableValidation);
60 public boolean isValidationEnabled();
61 public ErrorLevel processValidationResults(List<ValidationResultInfo> results);
62 public ErrorLevel processValidationResults(List<ValidationResultInfo> results, boolean clearErrors);
63 public void clearValidationWarnings();
64 public boolean isDirty();
65 public void resetDirtyFlags();
66
67 }