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
|
|
7
|
/**
|
8
|
* Created by stefania on 5/8/15.
|
9
|
*/
|
10
|
public class PublisherContactInfo implements IsWidget {
|
11
|
|
12
|
private HTML publisherContactInfo = new HTML();
|
13
|
private String publisherContactInfoContents = "";
|
14
|
|
15
|
public PublisherContactInfo(String publisherEmail) {
|
16
|
|
17
|
publisherContactInfoContents = "<div>";
|
18
|
|
19
|
publisherContactInfoContents += "<dl><dt class=\"chronologySubTitle\">PUBLISHER CONTACT</dt></dl>";
|
20
|
|
21
|
publisherContactInfoContents += "<dd>" + publisherEmail + "</dd>";
|
22
|
|
23
|
publisherContactInfoContents += "</div>";
|
24
|
publisherContactInfo.setHTML(publisherContactInfoContents);
|
25
|
}
|
26
|
|
27
|
@Override
|
28
|
public Widget asWidget() {
|
29
|
return publisherContactInfo;
|
30
|
}
|
31
|
|
32
|
public void addStyleName(String styleName) {
|
33
|
publisherContactInfo.addStyleName(styleName);
|
34
|
}
|
35
|
}
|