1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.common.ui.client.widgets;
17
18 import com.google.gwt.user.client.ui.Composite;
19 import com.google.gwt.user.client.ui.HorizontalPanel;
20 import com.google.gwt.user.client.ui.Label;
21
22 public class KSThinTitleBar extends Composite{
23 private final HorizontalPanel titlePanel = new HorizontalPanel();
24 private Label titleLabel = new Label();
25
26 public KSThinTitleBar(String text){
27 titlePanel.setHorizontalAlignment(HorizontalPanel.ALIGN_CENTER);
28 titleLabel = new Label(text, false);
29 titlePanel.add(titleLabel);
30 titlePanel.addStyleName("KS-Popup-Header");
31 this.initWidget(titlePanel);
32 }
33
34 public void setTitle(String text){
35 titleLabel.setText(text);
36 }
37
38 public String getTitle(){
39 return titleLabel.getText();
40 }
41 }