1
|
package eu.dnetlib.client.fundingrequest.stepinfo;
|
2
|
|
3
|
import com.google.gwt.user.client.ui.HTML;
|
4
|
import com.google.gwt.user.client.ui.IsWidget;
|
5
|
import com.google.gwt.user.client.ui.Widget;
|
6
|
import eu.dnetlib.goldoa.domain.Publisher;
|
7
|
|
8
|
/**
|
9
|
* Created by stefania on 3/27/15.
|
10
|
*/
|
11
|
public class PublisherFullInfo implements IsWidget {
|
12
|
|
13
|
private HTML publisherInfo = new HTML();
|
14
|
private String publisherInfoContents = "";
|
15
|
|
16
|
public PublisherFullInfo(Publisher publisher) {
|
17
|
|
18
|
publisherInfoContents = "<div>";
|
19
|
|
20
|
publisherInfoContents += "<dl><dt class=\"chronologySubTitle\">PUBLISHER</dt></dl>";
|
21
|
|
22
|
if(publisher.getName()!=null && !publisher.getName().trim().equals(""))
|
23
|
publisherInfoContents += "<dd>" + publisher.getName() + "</dd>";
|
24
|
|
25
|
publisherInfoContents += "</div>";
|
26
|
publisherInfo.setHTML(publisherInfoContents);
|
27
|
}
|
28
|
|
29
|
@Override
|
30
|
public Widget asWidget() {
|
31
|
return publisherInfo;
|
32
|
}
|
33
|
|
34
|
public void addStyleName(String styleName) {
|
35
|
publisherInfo.addStyleName(styleName);
|
36
|
}
|
37
|
}
|