@@ -0,0 +1,2621 @@
+package no.uio.ifi.trackfind.frontend;%0A%0Aimport com.vaadin.annotations.Theme;%0Aimport com.vaadin.annotations.Title;%0Aimport com.vaadin.annotations.Widgetset;%0Aimport com.vaadin.data.HasValue;%0Aimport com.vaadin.data.provider.AbstractBackEndDataProvider;%0Aimport com.vaadin.data.provider.Query;%0Aimport com.vaadin.server.ExternalResource;%0Aimport com.vaadin.server.VaadinRequest;%0Aimport com.vaadin.spring.annotation.SpringUI;%0Aimport com.vaadin.ui.*;%0Aimport com.vaadin.ui.renderers.ButtonRenderer;%0Aimport com.vaadin.ui.renderers.ClickableRenderer;%0Aimport elemental.json.JsonValue;%0Aimport lombok.extern.slf4j.Slf4j;%0Aimport no.uio.ifi.trackfind.backend.pojo.TfHub;%0Aimport no.uio.ifi.trackfind.backend.pojo.TfObjectType;%0Aimport no.uio.ifi.trackfind.backend.pojo.TfReference;%0Aimport no.uio.ifi.trackfind.backend.services.MetamodelService;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0A%0Aimport java.util.stream.Stream;%0A%0A/**%0A * Hystrix Vaadin UI of the application.%0A * Uses custom theme (VAADIN/themes/trackfind/trackfind.scss).%0A * Uses custom WidgetSet (TrackFindWidgetSet.gwt.xml).%0A *%0A * @author Dmytro Titov%0A */%0A@SpringUI(path = %22/monitor%22)%0A@Widgetset(%22TrackFindWidgetSet%22)%0A@Title(%22Hystryx Dashboard%22)%0A@Theme(%22trackfind%22)%0A@Slf4j%0Apublic class TrackFindMonitorUI extends AbstractUI %7B%0A%0A    @Override%0A    protected void init(VaadinRequest vaadinRequest) %7B%0A        HorizontalLayout headerLayout = buildHeaderLayout();%0A        VerticalLayout referencesLayout = buildReferencesLayout();%0A        HorizontalLayout mainLayout = buildMainLayout(referencesLayout);%0A        HorizontalLayout footerLayout = buildFooterLayout();%0A        VerticalLayout outerLayout = buildOuterLayout(headerLayout, mainLayout, footerLayout);%0A        setContent(outerLayout);%0A    %7D%0A%0A    private VerticalLayout buildReferencesLayout() %7B%0A        VerticalLayout layout = new VerticalLayout();%0A        layout.setSizeFull();%0A        BrowserFrame browser = new BrowserFrame(%22Browser%22, new ExternalResource(%22http://localhost/hystrix/monitor?stream=http%253A%252F%252Flocalhost%252Factuator%252Fhystrix.stream&title=TrackFind%22));%0A        browser.setSizeFull();%0A        layout.addComponent(browser);%0A        Panel panel = new Panel(%22Circuits status%22, browser);%0A        panel.setSizeFull();%0A        layout.addComponents(panel);%0A        layout.setExpandRatio(panel, 1f);%0A        return layout;%0A    %7D%0A%0A%0A    private HorizontalLayout buildMainLayout(VerticalLayout leftLayout) %7B%0A        HorizontalLayout mainLayout = new HorizontalLayout(leftLayout);%0A        mainLayout.setExpandRatio(leftLayout, 0.66f);%0A        mainLayout.setSizeFull();%0A        return mainLayout;%0A    %7D%0A%0A%7D%0A

Create Vaadin view with BrowserFrame with Hystrix dashboard