1
|
package eu.dnetlib.repo.manager.client;
|
2
|
|
3
|
import com.google.gwt.user.client.ui.FlowPanel;
|
4
|
import com.google.gwt.user.client.ui.Widget;
|
5
|
|
6
|
/**
|
7
|
* Created by stefania on 5/17/17.
|
8
|
*/
|
9
|
public abstract class AbstractRepositoryManagerWidget implements RepositoryManagerWidget {
|
10
|
|
11
|
protected FlowPanel mainWidgetPanel = new FlowPanel();
|
12
|
|
13
|
protected FlowPanel gridPanel = new FlowPanel();
|
14
|
|
15
|
protected FlowPanel contentPanel = new FlowPanel();
|
16
|
protected FlowPanel helpPanel = new FlowPanel();
|
17
|
|
18
|
public AbstractRepositoryManagerWidget() {
|
19
|
|
20
|
mainWidgetPanel.addStyleName("uk-container");
|
21
|
|
22
|
gridPanel.addStyleName("uk-grid uk-grid-stack");
|
23
|
mainWidgetPanel.add(gridPanel);
|
24
|
|
25
|
helpPanel.addStyleName("tm-sidebar uk-width-1-4@m");
|
26
|
|
27
|
contentPanel.addStyleName("uk-width-expand@m uk-first-column");
|
28
|
gridPanel.add(contentPanel);
|
29
|
}
|
30
|
|
31
|
@Override
|
32
|
public Widget asWidget() {
|
33
|
return mainWidgetPanel;
|
34
|
}
|
35
|
}
|