Search in sources :

Example 1 with TopologyContextMenu

use of org.opennms.features.topology.app.internal.menu.TopologyContextMenu in project opennms by OpenNMS.

the class TopologyUI method addContentLayout.

private void addContentLayout() {
    m_layout = new VerticalLayout();
    m_layout.setSizeFull();
    // Set expand ratio so that all extra space is allocated to this vertical component
    m_rootLayout.addComponent(m_layout);
    m_rootLayout.setExpandRatio(m_layout, 1);
    m_mapLayout = createMapLayout();
    m_mapLayout.setSizeFull();
    m_menuBar = new TopologyMenuBar();
    m_contextMenu = new TopologyContextMenu();
    updateMenu();
    if (m_widgetManager.widgetCount() != 0) {
        updateWidgetView(m_widgetManager);
    } else {
        m_layout.addComponent(m_mapLayout);
    }
    // Set expand ratio so that extra space is not allocated to this vertical component
    if (m_showHeader) {
        m_rootLayout.addComponent(m_menuBar, 1);
    } else {
        m_rootLayout.addComponent(m_menuBar, 0);
    }
}
Also used : TopologyContextMenu(org.opennms.features.topology.app.internal.menu.TopologyContextMenu) VerticalLayout(com.vaadin.ui.VerticalLayout) TopologyMenuBar(org.opennms.features.topology.app.internal.menu.TopologyMenuBar)

Aggregations

VerticalLayout (com.vaadin.ui.VerticalLayout)1 TopologyContextMenu (org.opennms.features.topology.app.internal.menu.TopologyContextMenu)1 TopologyMenuBar (org.opennms.features.topology.app.internal.menu.TopologyMenuBar)1