1 |
|
package org.kuali.student.common.ui.client.widgets.layout; |
2 |
|
|
3 |
|
import org.kuali.student.common.ui.client.widgets.menus.KSListPanel; |
4 |
|
|
5 |
|
import com.google.gwt.event.dom.client.ClickHandler; |
6 |
|
import com.google.gwt.user.client.ui.Anchor; |
7 |
|
import com.google.gwt.user.client.ui.Hyperlink; |
8 |
|
import com.google.gwt.user.client.ui.Widget; |
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
@author |
14 |
|
|
15 |
|
|
|
|
| 0% |
Uncovered Elements: 17 (17) |
Complexity: 5 |
Complexity Density: 0.42 |
|
16 |
|
public class LinkContentBlock extends ContentBlock{ |
17 |
|
|
18 |
|
protected KSListPanel listLayout = new KSListPanel(); |
19 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
20 |
0
|
public LinkContentBlock(String blockTitle, String blockDescriptionHtml,... |
21 |
|
int blockSize) { |
22 |
0
|
super(blockTitle, blockDescriptionHtml, blockSize); |
23 |
0
|
super.add(listLayout); |
24 |
0
|
listLayout.setStyleName("contentBlock-list"); |
25 |
|
} |
26 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
27 |
0
|
public LinkContentBlock(String blockTitle, String blockDescriptionHtml){... |
28 |
0
|
this(blockTitle, blockDescriptionHtml, 1); |
29 |
|
} |
30 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
31 |
0
|
@Override... |
32 |
|
public void add(Widget widget){ |
33 |
0
|
listLayout.add(widget); |
34 |
|
} |
35 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
36 |
0
|
public void addNavLinkWidget(String text, String location){... |
37 |
0
|
Hyperlink hyperlink = new Hyperlink(text, location); |
38 |
0
|
hyperlink.addStyleName("contentBlock-navLink"); |
39 |
0
|
listLayout.add(hyperlink); |
40 |
|
} |
41 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
42 |
0
|
public void addNavLinkWidget(String text, ClickHandler handler){... |
43 |
0
|
Anchor anchor = new Anchor(text); |
44 |
0
|
anchor.addClickHandler(handler); |
45 |
0
|
anchor.addStyleName("contentBlock-navLink"); |
46 |
0
|
this.add(anchor); |
47 |
|
} |
48 |
|
|
49 |
|
} |