1 |
40232
|
stefania.m
|
package eu.dnetlib.repo.manager.client;
|
2 |
|
|
|
3 |
|
|
import com.google.gwt.dom.client.Document;
|
4 |
|
|
import com.google.gwt.dom.client.Style;
|
5 |
|
|
|
6 |
|
|
/**
|
7 |
|
|
* Created by stefania on 12/2/15.
|
8 |
|
|
*/
|
9 |
40511
|
stefania.m
|
public class RepositoryManagerPage {
|
10 |
40232
|
stefania.m
|
|
11 |
40511
|
stefania.m
|
private static RepositoryManagerPage instance = null;
|
12 |
40232
|
stefania.m
|
|
13 |
40511
|
stefania.m
|
private RepositoryManagerPage() {
|
14 |
40232
|
stefania.m
|
}
|
15 |
|
|
|
16 |
40511
|
stefania.m
|
public static final RepositoryManagerPage getInstance() {
|
17 |
40232
|
stefania.m
|
|
18 |
|
|
if(instance==null)
|
19 |
40511
|
stefania.m
|
instance = new RepositoryManagerPage();
|
20 |
40232
|
stefania.m
|
|
21 |
|
|
return instance;
|
22 |
|
|
}
|
23 |
|
|
|
24 |
40511
|
stefania.m
|
public void showRepositoryManagerPage() {
|
25 |
40232
|
stefania.m
|
|
26 |
|
|
Document.get().getElementById("landingPage").getStyle().setDisplay(Style.Display.NONE);
|
27 |
|
|
Document.get().getElementById("register").getStyle().setDisplay(Style.Display.NONE);
|
28 |
|
|
Document.get().getElementById("login").getStyle().setDisplay(Style.Display.NONE);
|
29 |
|
|
Document.get().getElementById("wrapper").getStyle().setDisplay(Style.Display.BLOCK);
|
30 |
|
|
|
31 |
|
|
Document.get().getBody().removeAttribute("class");
|
32 |
|
|
// Document.get().getBody().addClassName("gray-bg");
|
33 |
|
|
}
|
34 |
|
|
}
|