1
|
/**
|
2
|
* Copyright (C) 2015 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.cdm.vaadin.ui;
|
10
|
|
11
|
import java.util.logging.Logger;
|
12
|
|
13
|
import com.vaadin.annotations.Theme;
|
14
|
import com.vaadin.annotations.Widgetset;
|
15
|
import com.vaadin.server.VaadinRequest;
|
16
|
import com.vaadin.spring.annotation.SpringUI;
|
17
|
import com.vaadin.ui.UI;
|
18
|
import com.vaadin.ui.VerticalLayout;
|
19
|
|
20
|
import eu.etaxonomy.cdm.vaadin.jscomponent.D3CTree;
|
21
|
|
22
|
/**
|
23
|
* @author cmathew
|
24
|
* @since 8 Apr 2015
|
25
|
*
|
26
|
*/
|
27
|
@Theme("edit")
|
28
|
@SpringUI(path="d3ctree")
|
29
|
@Widgetset("eu.etaxonomy.cdm.vaadin.AppWidgetSet")
|
30
|
public class D3CTreeUI extends UI {
|
31
|
|
32
|
private final static Logger logger =
|
33
|
Logger.getLogger(D3CTreeUI.class.getName());
|
34
|
|
35
|
final VerticalLayout layout = new VerticalLayout();
|
36
|
final D3CTree d3ctree = new D3CTree();
|
37
|
|
38
|
|
39
|
@Override
|
40
|
protected void init(VaadinRequest request) {
|
41
|
layout.addComponent(d3ctree); //add the diagram like any other vaadin component, cool!
|
42
|
setContent(layout);
|
43
|
}
|
44
|
|
45
|
|
46
|
}
|