1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.common.ui.client.application;
17
18 import org.kuali.student.common.ui.client.configurable.mvc.LayoutController;
19 import org.kuali.student.common.ui.client.widgets.containers.KSWrapper;
20
21 import com.google.gwt.user.client.ui.Composite;
22 import com.google.gwt.user.client.ui.Panel;
23 import com.google.gwt.user.client.ui.SimplePanel;
24 import com.google.gwt.user.client.ui.VerticalPanel;
25 import com.google.gwt.user.client.ui.Widget;
26
27
28
29
30
31
32
33 public class ApplicationComposite extends Composite {
34 private final Panel body = new VerticalPanel();
35
36 private final KSWrapper headerFooterContainer = new KSWrapper();
37 private final SimplePanel content = new SimplePanel();
38
39 public ApplicationComposite() {
40 super.initWidget(body);
41
42 headerFooterContainer.setContent(content);
43 body.add(headerFooterContainer);
44
45 super.addStyleName("KS-Application");
46 content.addStyleName("KS-Application-Content");
47 }
48
49 public void setContent(Widget w) {
50 content.setWidget(w);
51 }
52
53 public Widget getContent() {
54 return content.getWidget();
55 }
56
57 }