Revision 47380
Added by Stefania Martziou almost 7 years ago
modules/uoa-repository-manager-gui/branches/newtheme/src/main/java/eu/dnetlib/repo/manager/client/dashboard/DashboardWidget.java | ||
---|---|---|
4 | 4 |
import com.google.gwt.user.client.ui.FlowPanel; |
5 | 5 |
import com.google.gwt.user.client.ui.HTML; |
6 | 6 |
import com.google.gwt.user.client.ui.Widget; |
7 |
import eu.dnetlib.repo.manager.client.AbstractRepositoryManagerWidget; |
|
7 | 8 |
import eu.dnetlib.repo.manager.client.RepositoryManagerWidget; |
8 | 9 |
|
9 | 10 |
/** |
10 | 11 |
* Created by stefania on 12/2/15. |
11 | 12 |
*/ |
12 |
public class DashboardWidget implements RepositoryManagerWidget { |
|
13 |
public class DashboardWidget extends AbstractRepositoryManagerWidget implements RepositoryManagerWidget {
|
|
13 | 14 |
|
14 | 15 |
private static DashboardWidget instance = null; |
15 | 16 |
|
... | ... | |
17 | 18 |
|
18 | 19 |
private DashboardWidget() { |
19 | 20 |
|
21 |
HTML title = new HTML("<h1 class=\"uk-article-title\">Dashboard</h1>"); |
|
22 |
title.addStyleName("uk-margin-medium-bottom"); |
|
23 |
contentPanel.add(title); |
|
24 |
contentPanel.add(dashboardPanel); |
|
25 |
|
|
20 | 26 |
HTML dashboardContentsMock = new HTML("<div class=\"sidebard-panel\" style=\"min-height: 1215px;\">\n" + |
21 | 27 |
" <div>\n" + |
22 | 28 |
" <h4>Messages <span class=\"badge badge-info pull-right\">16</span></h4>\n" + |
... | ... | |
364 | 370 |
|
365 | 371 |
// dashboardPanel.add(dashboardContentsMock); |
366 | 372 |
|
367 |
HTML html = new HTML("<div id=\"contentWrapper\"><div><div class=\"row\"><div class=\"col-lg-12\"><div " + |
|
368 |
"class=\"wrapper wrapper-content animated fadeInUp\"><div class=\"ibox\"><div class=\"ibox-content " + |
|
369 |
"bigContent\"><div class=\"alert alert-danger\" style=\"display: none;\" aria-hidden=\"true\"></div>" + |
|
370 |
"<div class=\"gwt-HTML\">Under construction</div></div></div></div></div></div></div></div>"); |
|
373 |
HTML html = new HTML("<div>Under construction</div>"); |
|
371 | 374 |
dashboardPanel.add(html); |
372 | 375 |
} |
373 | 376 |
|
... | ... | |
404 | 407 |
public void afterAdditionToRootPanel() { |
405 | 408 |
|
406 | 409 |
} |
407 |
|
|
408 |
@Override |
|
409 |
public Widget asWidget() { |
|
410 |
return dashboardPanel; |
|
411 |
} |
|
412 | 410 |
} |
Also available in: Unified diff
Dashboard widget with the new template