Project

General

Profile

1
package eu.dnetlib.repo.manager.client.validator.test;
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
import org.gwtbootstrap3.client.ui.Alert;
8
import org.gwtbootstrap3.client.ui.constants.AlertType;
9

    
10
/**
11
 * Created by stefania on 2/12/16.
12
 */
13
public class ValidationWizardCompleteWidget implements IsWidget {
14

    
15
    private FlowPanel validationWizardCompletePanel = new FlowPanel();
16

    
17
    private FlowPanel contentPanel = new FlowPanel();
18

    
19
    public ValidationWizardCompleteWidget(String mode) {
20

    
21
        validationWizardCompletePanel.addStyleName("animated fadeInRight");
22
        validationWizardCompletePanel.addStyleName("stepContent");
23

    
24
        validationWizardCompletePanel.add(contentPanel);
25
//        contentPanel.addStyleName("success");
26

    
27
        HTML html = new HTML();
28
        html.setHTML("<div class=\"success\"><i class=\"fa fa-check-circle\"></i><h3>Validation has begun</h3></div>");
29

    
30
        contentPanel.add(html);
31

    
32
        Alert infoAlert = new Alert();
33
        infoAlert.setType(AlertType.INFO);
34
        infoAlert.addStyleName("marginTop20 textAlignCenter");
35
        infoAlert.setText("You will be notified by email with the results of the compatibility test.");
36
        contentPanel.add(infoAlert);
37
    }
38

    
39
    @Override
40
    public Widget asWidget() {
41
        return validationWizardCompletePanel;
42
    }
43
}
(12-12/12)