Coverage Report - org.kuali.student.common.ui.client.configurable.mvc.sections.Section
 
Classes in this File Line Coverage Branch Coverage Complexity
Section
N/A
N/A
1
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 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.core.validation.dto.ValidationResultInfo;
 25  
 import org.kuali.student.core.validation.dto.ValidationResultInfo.ErrorLevel;
 26  
 
 27  
 import com.google.gwt.user.client.ui.Widget;
 28  
 
 29  
 public interface Section extends HasLayoutController{
 30  
         public String addField(FieldDescriptor field);
 31  
         public String addSection(Section section);
 32  
         public String addSection(String key, Section section);
 33  
         public FieldLayout getLayout();
 34  
         public void removeField(String fieldKey);
 35  
         public void removeSection(String sectionKey);
 36  
         public void removeSection(Section section);
 37  
         public void removeField(FieldDescriptor field);
 38  
         public FieldDescriptor getField(String fieldKey);
 39  
         public Section getSection(String sectionKey);
 40  
         public List<FieldDescriptor> getUnnestedFields();
 41  
         public String addWidget(Widget widget);
 42  
         public void removeWidget(Widget widget);
 43  
         public void removeWidget(String key);
 44  
         public void resetFieldInteractionFlags();
 45  
         public void setFieldHasHadFocusFlags(boolean hadFocus);
 46  
         public void updateWidgetData(DataModel model);
 47  
         public void updateModel(DataModel model);
 48  
         public List<FieldDescriptor> getFields();
 49  
         public List<Section> getSections();
 50  
         public void enableValidation(boolean enableValidation);
 51  
         public boolean isValidationEnabled();
 52  
         public ErrorLevel processValidationResults(List<ValidationResultInfo> results);
 53  
         public ErrorLevel processValidationResults(List<ValidationResultInfo> results, boolean clearAllValidation);
 54  
         public boolean isDirty();
 55  
         public void resetDirtyFlags();
 56  
         
 57  
 }