1 |
|
package org.kuali.student.common.ui.client.widgets.headers; |
2 |
|
|
3 |
|
import org.kuali.student.common.ui.client.widgets.StylishDropDown; |
4 |
|
|
5 |
|
import com.google.gwt.core.client.GWT; |
6 |
|
import com.google.gwt.uibinder.client.UiBinder; |
7 |
|
import com.google.gwt.uibinder.client.UiField; |
8 |
|
import com.google.gwt.user.client.ui.Composite; |
9 |
|
import com.google.gwt.user.client.ui.FlowPanel; |
10 |
|
import com.google.gwt.user.client.ui.Label; |
11 |
|
import com.google.gwt.user.client.ui.Panel; |
12 |
|
import com.google.gwt.user.client.ui.Widget; |
13 |
|
|
|
|
| 0% |
Uncovered Elements: 19 (19) |
Complexity: 8 |
Complexity Density: 0.73 |
|
14 |
|
public class KSHeader extends Composite { |
15 |
|
|
16 |
|
private static KSHeaderUiBinder uiBinder = GWT |
17 |
|
.create(KSHeaderUiBinder.class); |
18 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
19 |
|
interface KSHeaderUiBinder extends UiBinder<Widget, KSHeader> { |
20 |
|
} |
21 |
|
|
22 |
|
@UiField |
23 |
|
FlowPanel hiPanel; |
24 |
|
|
25 |
|
@UiField |
26 |
|
FlowPanel userNamePanel; |
27 |
|
|
28 |
|
@UiField |
29 |
|
FlowPanel logoutPanel; |
30 |
|
|
31 |
|
@UiField |
32 |
|
FlowPanel leftPartPanel; |
33 |
|
|
34 |
|
@UiField |
35 |
|
Label applicationTitleLabel; |
36 |
|
|
37 |
|
@UiField |
38 |
|
FlowPanel bottomContainer; |
39 |
|
|
40 |
|
|
41 |
|
Label userNameLabel = new Label(""); |
42 |
|
Label hiLabel = new Label("Hi,"); |
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
43 |
0
|
public KSHeader() {... |
44 |
0
|
initWidget(uiBinder.createAndBindUi(this)); |
45 |
0
|
hiPanel.add(hiLabel); |
46 |
0
|
userNamePanel.add(userNameLabel); |
47 |
0
|
applicationTitleLabel.setText("Kuali Student"); |
48 |
|
|
49 |
|
|
50 |
|
} |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
51 |
0
|
public void addLogout(Widget w){... |
52 |
0
|
logoutPanel.add(w); |
53 |
|
} |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
54 |
0
|
public void addNavigation(StylishDropDown dropDown){... |
55 |
0
|
leftPartPanel.add(dropDown); |
56 |
|
} |
57 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
58 |
0
|
public void setHiLabelText(String hi){... |
59 |
0
|
hiLabel.setText(hi); |
60 |
|
} |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
0
|
public void setUserName(String name){... |
62 |
0
|
userNameLabel.setText(name); |
63 |
|
} |
64 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
0
|
public void addBottomContainerWidget(Widget w){... |
66 |
0
|
bottomContainer.add(w); |
67 |
|
} |
68 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
0
|
public Panel getBottomContainer(){... |
70 |
0
|
return bottomContainer; |
71 |
|
} |
72 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
73 |
0
|
public void setApplicationTitle(String title) {... |
74 |
0
|
applicationTitleLabel.setText(title); |
75 |
|
} |
76 |
|
} |