View Javadoc

1   package org.kuali.student.lum.lu.ui.main.client.views;
2   
3   import org.kuali.student.common.ui.client.mvc.Controller;
4   import org.kuali.student.common.ui.client.mvc.ViewComposite;
5   import org.kuali.student.common.ui.client.widgets.field.layout.element.SpanPanel;
6   import org.kuali.student.lum.lu.ui.main.client.widgets.ActionList;
7   
8   import com.google.gwt.user.client.ui.Widget;
9   
10  /**
11   * The default view for the HomeController contains the rice action list in an iFrame.
12   * 
13   * @author Kuali Student Team
14   *
15   */
16  public class HomeView extends ViewComposite{
17  	
18  	private SpanPanel container = new SpanPanel();
19  
20  	private ActionList actionListView = new ActionList();
21  	
22  	public HomeView(Controller controller, Enum<?> viewType) {
23  		super(controller, "", viewType);
24  		container.add(actionListView);
25  
26  		this.initWidget(container);
27  
28  	}
29  	
30  	public void addWidget(Widget w){
31  		container.insert(w, container.getWidgetIndex(actionListView));
32  	}
33  	
34  }