1
|
package eu.dnetlib.client.fundingrequest.stepinfo;
|
2
|
|
3
|
import com.google.gwt.i18n.client.DateTimeFormat;
|
4
|
import com.google.gwt.user.client.ui.HTML;
|
5
|
import com.google.gwt.user.client.ui.IsWidget;
|
6
|
import com.google.gwt.user.client.ui.Widget;
|
7
|
|
8
|
/**
|
9
|
* Created by stefania on 3/7/16.
|
10
|
*/
|
11
|
public class LicenseFullInfo implements IsWidget {
|
12
|
|
13
|
private HTML licenseInfo = new HTML();
|
14
|
private String licenseInfoContents = "";
|
15
|
|
16
|
private DateTimeFormat dtf = DateTimeFormat.getFormat("yyyy-MM-dd");
|
17
|
|
18
|
public LicenseFullInfo(String license) {
|
19
|
|
20
|
licenseInfoContents = "<div>";
|
21
|
licenseInfoContents += "<dl><dt class=\"chronologySubTitle\">LICENSE</dt></dl>";
|
22
|
if(license!=null)
|
23
|
licenseInfoContents += "<dd>" + license + "</dd>";
|
24
|
else
|
25
|
licenseInfoContents += "<dd>not available</dd>";
|
26
|
licenseInfoContents += "</div>";
|
27
|
licenseInfo.setHTML(licenseInfoContents);
|
28
|
}
|
29
|
|
30
|
@Override
|
31
|
public Widget asWidget() {
|
32
|
return licenseInfo;
|
33
|
}
|
34
|
|
35
|
public void addStyleName(String styleName) {
|
36
|
licenseInfo.addStyleName(styleName);
|
37
|
}
|
38
|
}
|