Project

General

Profile

1 35507 stefania.m
package eu.dnetlib.client;
2
3
import com.google.gwt.user.client.ui.*;
4
import eu.dnetlib.client.user.UserRegistrationForm;
5
6
/**
7
 * Created by stefania on 3/19/15.
8
 */
9
public class EditAccountInfoWidget implements MyWidget {
10
11
    private FlowPanel editAccountInfoPagePanel = new FlowPanel();
12
13
    UserRegistrationForm userRegistrationForm = new UserRegistrationForm(true);
14
15
    public EditAccountInfoWidget() {
16
17 35792 stefania.m
        editAccountInfoPagePanel.addStyleName("content");
18
19 35507 stefania.m
        editAccountInfoPagePanel.add(userRegistrationForm.asWidget());
20
    }
21
22
    @Override
23
    public Widget asWidget() {
24
        return editAccountInfoPagePanel;
25
    }
26
27
    @Override
28
    public void clear() {
29
        userRegistrationForm.clear();
30
    }
31
32
    @Override
33 35665 stefania.m
    public void reload() {
34
        userRegistrationForm.reload();
35
    }
36
37
    @Override
38 35507 stefania.m
    public void setToken(String token) {
39
40
    }
41
}