1
|
package eu.dnetlib.repo.manager.client.datasources.utils;
|
2
|
|
3
|
import com.google.gwt.user.client.ui.FlowPanel;
|
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 1/11/16.
|
10
|
*/
|
11
|
public class RepositoryRegistrationCompleteWidget implements IsWidget {
|
12
|
|
13
|
private FlowPanel repositoryRegistrationCompletePanel = new FlowPanel();
|
14
|
|
15
|
private FlowPanel contentPanel = new FlowPanel();
|
16
|
|
17
|
public RepositoryRegistrationCompleteWidget(String mode) {
|
18
|
|
19
|
repositoryRegistrationCompletePanel.addStyleName("animated fadeInRight");
|
20
|
repositoryRegistrationCompletePanel.addStyleName("stepContent");
|
21
|
|
22
|
repositoryRegistrationCompletePanel.add(contentPanel);
|
23
|
// contentPanel.addStyleName("success");
|
24
|
|
25
|
HTML html = new HTML();
|
26
|
html.setHTML("<div class=\"success\"><i class=\"fa fa-check-circle\"></i><h3>Your repository has been registered " +
|
27
|
"successfully!</h3></div>");
|
28
|
|
29
|
contentPanel.add(html);
|
30
|
}
|
31
|
|
32
|
@Override
|
33
|
public Widget asWidget() {
|
34
|
return repositoryRegistrationCompletePanel;
|
35
|
}
|
36
|
}
|