1 | |
package org.kuali.student.common.ui.client.demo; |
2 | |
|
3 | |
import org.kuali.student.common.ui.client.widgets.headers.KSDocumentHeader; |
4 | |
import org.kuali.student.common.ui.client.widgets.headers.KSHeader; |
5 | |
|
6 | |
import com.google.gwt.user.client.ui.Composite; |
7 | |
import com.google.gwt.user.client.ui.Label; |
8 | |
import com.google.gwt.user.client.ui.VerticalPanel; |
9 | |
import com.google.gwt.user.client.ui.Widget; |
10 | |
|
11 | |
public class HeaderDemo extends Composite{ |
12 | 0 | public HeaderDemo(){ |
13 | 0 | super.initWidget(createDemoPage()); |
14 | 0 | } |
15 | |
private Widget createDemoPage(){ |
16 | 0 | VerticalPanel p = new VerticalPanel(); |
17 | |
|
18 | 0 | p.add(new KSHeader()); |
19 | |
|
20 | 0 | KSDocumentHeader ksDocumentHeader = new KSDocumentHeader(); |
21 | 0 | ksDocumentHeader.setTitle("Title"); |
22 | 0 | ksDocumentHeader.addWidget(new Label("Status: Draft")); |
23 | 0 | p.add(ksDocumentHeader); |
24 | |
|
25 | |
|
26 | |
|
27 | 0 | return p; |
28 | |
} |
29 | |
} |