1
|
package eu.dnetlib.repo.manager.client.enrichcontent;
|
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.RootPanel;
|
6
|
import eu.dnetlib.repo.manager.client.RepositoryManager;
|
7
|
import eu.dnetlib.repo.manager.client.TokenController;
|
8
|
|
9
|
/**
|
10
|
* Created by stefania on 3/16/17.
|
11
|
*/
|
12
|
public class BrowseSubscriptionsController extends TokenController {
|
13
|
|
14
|
private BrowseSubscriptionsWidget browseSubscriptionsWidget = new BrowseSubscriptionsWidget();
|
15
|
|
16
|
private static BrowseSubscriptionsController instance = null;
|
17
|
|
18
|
public static BrowseSubscriptionsController getInstance() {
|
19
|
if (instance == null)
|
20
|
instance = new BrowseSubscriptionsController();
|
21
|
|
22
|
return instance;
|
23
|
}
|
24
|
|
25
|
@Override
|
26
|
public void showWidget(FlowPanel contentPanel, String parent, String rest) {
|
27
|
|
28
|
if (rest == null)
|
29
|
redrawWidget(contentPanel, browseSubscriptionsWidget, parent, rest);
|
30
|
}
|
31
|
|
32
|
// @Override
|
33
|
// public void drawHeader(String rest) {
|
34
|
//
|
35
|
// RootPanel.get("pageHeader").addStyleName("row wrapper border-bottom white-bg page-heading");
|
36
|
//
|
37
|
// if (rest == null) {
|
38
|
// RepositoryManager.pageHeader.clear();
|
39
|
// RepositoryManager.pageHeader.add(new HTML("<div class=\"col-sm-9\"><h2>Enrich Your Content - Browse Subscriptions</h2>" +
|
40
|
// "<ol class=\"breadcrumb\"><li><a href=\"#dashboard\">Home</a></li><li class=\"active\">" +
|
41
|
// "<strong>Enrich Content - Browse Subscriptions</strong></li></ol></div>"));
|
42
|
// }
|
43
|
// }
|
44
|
|
45
|
@Override
|
46
|
public String[] getMenuPath(String parent, String rest) {
|
47
|
return new String[] {"subscriptions"};
|
48
|
}
|
49
|
}
|