2 * Copyright (C) 2015 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.cdm
.vaadin
.ui
;
11 import java
.util
.logging
.Logger
;
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
;
20 import eu
.etaxonomy
.cdm
.vaadin
.jscomponent
.D3CTree
;
28 @SpringUI(path
="d3ctree")
29 @Widgetset("eu.etaxonomy.cdm.vaadin.AppWidgetSet")
30 public class D3CTreeUI
extends UI
{
32 private final static Logger logger
=
33 Logger
.getLogger(D3CTreeUI
.class.getName());
35 final VerticalLayout layout
= new VerticalLayout();
36 final D3CTree d3ctree
= new D3CTree();
40 protected void init(VaadinRequest request
) {
41 layout
.addComponent(d3ctree
); //add the diagram like any other vaadin component, cool!