1
|
package eu.dnetlib.repo.manager.client.admin.helptexts;
|
2
|
|
3
|
import com.google.gwt.user.client.ui.FlowPanel;
|
4
|
import eu.dnetlib.repo.manager.client.TokenController;
|
5
|
|
6
|
/**
|
7
|
* Created by stefania on 3/9/16.
|
8
|
*/
|
9
|
public class HelpTextsAdminController extends TokenController {
|
10
|
|
11
|
private HelpTextsAdminWidget helpTextsAdminWidget = new HelpTextsAdminWidget();
|
12
|
|
13
|
private static HelpTextsAdminController instance = null;
|
14
|
|
15
|
public static HelpTextsAdminController getInstance() {
|
16
|
if (instance == null)
|
17
|
instance = new HelpTextsAdminController();
|
18
|
|
19
|
return instance;
|
20
|
}
|
21
|
|
22
|
@Override
|
23
|
public void showWidget(FlowPanel contentPanel, String parent, String rest) {
|
24
|
redrawWidget(contentPanel, helpTextsAdminWidget, parent, rest);
|
25
|
}
|
26
|
|
27
|
// @Override
|
28
|
// public void drawHeader(String rest) {
|
29
|
//
|
30
|
// RootPanel.get("pageHeader").addStyleName("row wrapper border-bottom white-bg page-heading");
|
31
|
// RepositoryManager.pageHeader.clear();
|
32
|
// RepositoryManager.pageHeader.add(new HTML("<div class=\"col-sm-9\"><h2>Help Texts Admin</h2><ol class=\"breadcrumb\">" +
|
33
|
// "<li><a href=\"#dashboard\">Home</a></li><li class=\"active\"><strong>Help Texts Admin</strong></li></ol></div>"));
|
34
|
// }
|
35
|
|
36
|
@Override
|
37
|
public String[] getMenuPath(String parent, String rest) {
|
38
|
return new String[] {"helpAdmin"};
|
39
|
}
|
40
|
}
|