Search in sources :

Example 71 with HorizontalLayout

use of com.vaadin.ui.HorizontalLayout in project Activiti by Activiti.

the class AdminDatabaseSettingsPanel method initDatabaseSettingsDetails.

protected void initDatabaseSettingsDetails() {
    Label settingsHeader = new Label(i18nManager.getMessage(Messages.MGMT_MENU_DATABASE));
    settingsHeader.addStyleName(ExplorerLayout.STYLE_H3);
    settingsHeader.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK);
    addDetailComponent(settingsHeader);
    detailLayout = new HorizontalLayout();
    detailLayout.setSpacing(true);
    detailLayout.setMargin(true, false, true, false);
    addDetailComponent(detailLayout);
    initSettingsProperties();
}
Also used : Label(com.vaadin.ui.Label) HorizontalLayout(com.vaadin.ui.HorizontalLayout)

Example 72 with HorizontalLayout

use of com.vaadin.ui.HorizontalLayout in project Activiti by Activiti.

the class AdminRunningInstancesPanel method initPageTitle.

protected void initPageTitle() {
    HorizontalLayout layout = new HorizontalLayout();
    layout.setWidth(100, UNITS_PERCENTAGE);
    layout.addStyleName(ExplorerLayout.STYLE_TITLE_BLOCK);
    layout.setSpacing(true);
    layout.setMargin(false, false, true, false);
    addDetailComponent(layout);
    Embedded groupImage = new Embedded(null, Images.PROCESS_50);
    layout.addComponent(groupImage);
    Label groupName = new Label(i18nManager.getMessage(Messages.ADMIN_RUNNING_TITLE));
    groupName.setSizeUndefined();
    groupName.addStyleName(Reindeer.LABEL_H2);
    layout.addComponent(groupName);
    layout.setComponentAlignment(groupName, Alignment.MIDDLE_LEFT);
    layout.setExpandRatio(groupName, 1.0f);
}
Also used : Label(com.vaadin.ui.Label) PrettyTimeLabel(org.activiti.explorer.ui.custom.PrettyTimeLabel) Embedded(com.vaadin.ui.Embedded) HorizontalLayout(com.vaadin.ui.HorizontalLayout)

Example 73 with HorizontalLayout

use of com.vaadin.ui.HorizontalLayout in project opennms by OpenNMS.

the class DialogWindow method createFooter.

private Layout createFooter() {
    HorizontalLayout footer = new HorizontalLayout();
    footer.setSpacing(true);
    footer.setMargin(true);
    footer.setWidth(100, Unit.PERCENTAGE);
    footer.addComponent(okayButton);
    footer.setComponentAlignment(okayButton, Alignment.BOTTOM_RIGHT);
    return footer;
}
Also used : HorizontalLayout(com.vaadin.ui.HorizontalLayout)

Example 74 with HorizontalLayout

use of com.vaadin.ui.HorizontalLayout in project opennms by OpenNMS.

the class CollectField method initContent.

/* (non-Javadoc)
     * @see com.vaadin.ui.CustomField#initContent()
     */
@Override
public Component initContent() {
    HorizontalLayout layout = new HorizontalLayout();
    layout.addComponent(selectField);
    return layout;
}
Also used : HorizontalLayout(com.vaadin.ui.HorizontalLayout)

Example 75 with HorizontalLayout

use of com.vaadin.ui.HorizontalLayout in project opennms by OpenNMS.

the class TopologyUI method createMapLayout.

private Component createMapLayout() {
    // Topology (Map) Component
    m_topologyComponent = new TopologyComponent(m_graphContainer, m_iconRepositoryManager, this);
    m_topologyComponent.setSizeFull();
    m_topologyComponent.addMenuItemStateListener(this);
    m_topologyComponent.addVertexUpdateListener(this);
    // Search Box
    m_searchBox = new SearchBox(m_serviceManager, new DefaultOperationContext(this, m_graphContainer, OperationContext.DisplayLocation.SEARCH));
    // Info Panel
    m_infoPanel = new InfoPanel(m_searchBox);
    // Breadcrumb
    m_breadcrumbComponent = new BreadcrumbComponent();
    // Layout hint
    m_layoutHintComponent = new LayoutHintComponent(m_layoutManager, m_graphContainer);
    // Toolbar
    m_toolbarPanel = new ToolbarPanel(new ToolbarPanelController() {

        @Override
        public void refreshUI() {
            new TopologyUI.DynamicUpdateRefresher().refreshUI();
        }

        @Override
        public void saveHistory() {
            TopologyUI.this.saveHistory();
        }

        @Override
        public void saveLayout() {
            m_graphContainer.saveLayout();
        }

        @Override
        public void setActiveTool(ActiveTool activeTool) {
            Objects.requireNonNull(activeTool);
            m_topologyComponent.setActiveTool(activeTool.name());
        }

        @Override
        public void showAllMap() {
            m_topologyComponent.showAllMap();
        }

        @Override
        public void centerMapOnSelection() {
            m_topologyComponent.centerMapOnSelection();
        }

        @Override
        public void toggleHighlightFocus() {
            m_topologyComponent.getState().setHighlightFocus(!m_topologyComponent.getState().isHighlightFocus());
            m_topologyComponent.updateGraph();
        }

        @Override
        public void setSemanticZoomLevel(int semanticZoomLevel) {
            m_graphContainer.setSemanticZoomLevel(semanticZoomLevel);
            m_graphContainer.redoLayout();
        }

        public int getSemanticZoomLevel() {
            return m_graphContainer.getSemanticZoomLevel();
        }

        @Override
        public Property<Double> getScaleProperty() {
            return m_graphContainer.getScaleProperty();
        }

        @Override
        public LayoutManager getLayoutManager() {
            return m_layoutManager;
        }
    });
    // Map Layout (we need to wrap it in an absolute layout otherwise it shows up twice on the topology map)
    AbsoluteLayout mapLayout = new AbsoluteLayout();
    mapLayout.addComponent(m_topologyComponent, "top:0px; left: 0px; right: 0px; bottom: 0px;");
    mapLayout.addComponent(m_breadcrumbComponent, "top:10px; left: 50px");
    mapLayout.addComponent(m_layoutHintComponent, "bottom: 10px; left:20px");
    mapLayout.setSizeFull();
    HorizontalLayout layout = new HorizontalLayout();
    layout.addStyleName("map-layout");
    layout.addComponent(m_infoPanel);
    layout.addComponent(mapLayout);
    layout.addComponent(m_toolbarPanel);
    layout.setExpandRatio(mapLayout, 1);
    layout.setSizeFull();
    return layout;
}
Also used : LayoutHintComponent(org.opennms.features.topology.app.internal.ui.LayoutHintComponent) InfoPanel(org.opennms.features.topology.app.internal.ui.InfoPanel) BreadcrumbComponent(org.opennms.features.topology.app.internal.ui.breadcrumbs.BreadcrumbComponent) SearchBox(org.opennms.features.topology.app.internal.ui.SearchBox) AbsoluteLayout(com.vaadin.ui.AbsoluteLayout) HorizontalLayout(com.vaadin.ui.HorizontalLayout) ToolbarPanelController(org.opennms.features.topology.app.internal.ui.ToolbarPanelController) ToolbarPanel(org.opennms.features.topology.app.internal.ui.ToolbarPanel)

Aggregations

HorizontalLayout (com.vaadin.ui.HorizontalLayout)85 Label (com.vaadin.ui.Label)45 Button (com.vaadin.ui.Button)26 VerticalLayout (com.vaadin.ui.VerticalLayout)20 Embedded (com.vaadin.ui.Embedded)19 ClickEvent (com.vaadin.ui.Button.ClickEvent)17 ClickListener (com.vaadin.ui.Button.ClickListener)15 ExternalResource (com.vaadin.terminal.ExternalResource)7 GridLayout (com.vaadin.ui.GridLayout)7 TextField (com.vaadin.ui.TextField)6 PrettyTimeLabel (org.activiti.explorer.ui.custom.PrettyTimeLabel)6 StreamResource (com.vaadin.terminal.StreamResource)5 Link (com.vaadin.ui.Link)5 Panel (com.vaadin.ui.Panel)5 InputStream (java.io.InputStream)4 URL (java.net.URL)4 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)3 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)3 ValueChangeEvent (com.vaadin.data.Property.ValueChangeEvent)3 ExternalResource (com.vaadin.server.ExternalResource)3