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 " +
29
                "successfully!</h3></div>");
30

    
31
        contentPanel.add(html);
32

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

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