Coverage Report - org.kuali.student.common.ui.client.mvc.View
 
Classes in this File Line Coverage Branch Coverage Complexity
View
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.mvc;
 17  
 
 18  
 import org.kuali.student.common.ui.client.mvc.breadcrumb.BreadcrumbSupport;
 19  
 import org.kuali.student.common.ui.client.mvc.history.HistorySupport;
 20  
 
 21  
 import com.google.gwt.user.client.ui.Widget;
 22  
 
 23  
 /**
 24  
  * Interface defining the operations necessary to implement a view.
 25  
  * 
 26  
  * @author Kuali Student Team
 27  
  */
 28  
 public interface View extends HistorySupport, BreadcrumbSupport {
 29  
     /**
 30  
      * Called by controller before the view is displayed to allow lazy initialization or any other preparatory work to be
 31  
      * done.
 32  
      */
 33  
     public void beforeShow(Callback<Boolean> onReadyCallback);
 34  
 
 35  
     /**
 36  
      * Called by the controller before the view is hidden to allow the view to perform cleanup or request confirmation from
 37  
      * the user, etc. Can cancel the action by returning false.
 38  
      * 
 39  
      * @return true if the view can be hidden, or false to cancel the action.
 40  
      */
 41  
     public boolean beforeHide();
 42  
 
 43  
     /**
 44  
      * Returns the controller associated with the view
 45  
      * 
 46  
      * @return
 47  
      */
 48  
     public Controller getController();
 49  
 
 50  
     /**
 51  
      * Returns the view's name
 52  
      * 
 53  
      * @return
 54  
      */
 55  
     public String getName();
 56  
     
 57  
     public Enum<?> getViewEnum();
 58  
 
 59  
     /** 
 60  
      * Can be called to reset a view to a cleared state.
 61  
      *
 62  
      */
 63  
     public void clear();
 64  
     
 65  
     public void updateModel();
 66  
     
 67  
     public Widget asWidget();
 68  
     
 69  
 }