Search in sources :

Example 76 with VerticalLayout

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

the class IncludeCollectionField method initContent.

/* (non-Javadoc)
     * @see com.vaadin.ui.CustomField#initContent()
     */
@Override
public Component initContent() {
    VerticalLayout layout = new VerticalLayout();
    layout.addComponent(table);
    layout.addComponent(toolbar);
    layout.setComponentAlignment(toolbar, Alignment.MIDDLE_RIGHT);
    return layout;
}
Also used : VerticalLayout(com.vaadin.ui.VerticalLayout)

Example 77 with VerticalLayout

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

the class AbstractStrategyField method initContent.

/* (non-Javadoc)
     * @see com.vaadin.ui.CustomField#initContent()
     */
@Override
public Component initContent() {
    VerticalLayout layout = new VerticalLayout();
    layout.addComponent(combo);
    layout.addComponent(table);
    layout.addComponent(toolbar);
    layout.setComponentAlignment(toolbar, Alignment.MIDDLE_RIGHT);
    return layout;
}
Also used : VerticalLayout(com.vaadin.ui.VerticalLayout)

Example 78 with VerticalLayout

use of com.vaadin.ui.VerticalLayout 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)

Example 79 with VerticalLayout

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

the class TopologyUI method createLayouts.

private void createLayouts() {
    m_rootLayout = new VerticalLayout();
    m_rootLayout.setSizeFull();
    m_rootLayout.addStyleName("root-layout");
    m_rootLayout.addStyleName("topo-root-layout");
    setContent(m_rootLayout);
    addHeader();
    addContentLayout();
    addNoContentWindow();
}
Also used : VerticalLayout(com.vaadin.ui.VerticalLayout)

Example 80 with VerticalLayout

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

the class TaskInvolvedPeopleComponent method initLayout.

protected void initLayout() {
    this.layout = new VerticalLayout();
    setCompositionRoot(layout);
}
Also used : VerticalLayout(com.vaadin.ui.VerticalLayout)

Aggregations

VerticalLayout (com.vaadin.ui.VerticalLayout)101 Label (com.vaadin.ui.Label)38 HorizontalLayout (com.vaadin.ui.HorizontalLayout)25 Button (com.vaadin.ui.Button)24 Chart (com.vaadin.addon.charts.Chart)18 ClickEvent (com.vaadin.ui.Button.ClickEvent)15 Link (com.vaadin.ui.Link)15 ExternalResource (com.vaadin.server.ExternalResource)11 Configuration (com.vaadin.addon.charts.model.Configuration)10 ListSeries (com.vaadin.addon.charts.model.ListSeries)9 ClickListener (com.vaadin.ui.Button.ClickListener)8 PostConstruct (javax.annotation.PostConstruct)8 YAxis (com.vaadin.addon.charts.model.YAxis)7 DataSeries (com.vaadin.addon.charts.model.DataSeries)6 Panel (com.vaadin.ui.Panel)6 XAxis (com.vaadin.addon.charts.model.XAxis)5 Embedded (com.vaadin.ui.Embedded)5 TextField (com.vaadin.ui.TextField)5 PointClickEvent (com.vaadin.addon.charts.PointClickEvent)4 PointClickListener (com.vaadin.addon.charts.PointClickListener)4