Search in sources :

Example 1 with SnmpCollectionPanel

use of org.opennms.features.vaadin.datacollection.SnmpCollectionPanel in project opennms by OpenNMS.

the class SnmpCollectionAdminApplication method init.

/* (non-Javadoc)
     * @see com.vaadin.ui.UI#init(com.vaadin.server.VaadinRequest)
     */
@Override
public void init(VaadinRequest request) {
    if (dataCollectionDao == null)
        throw new RuntimeException("dataCollectionDao cannot be null.");
    TabSheet tabs = new TabSheet();
    tabs.addStyleName("light");
    tabs.setSizeFull();
    tabs.addTab(new SnmpCollectionPanel(dataCollectionDao, new SimpleLogger()));
    tabs.addTab(new DataCollectionGroupAdminPanel(dataCollectionDao));
    setContent(tabs);
}
Also used : TabSheet(com.vaadin.ui.TabSheet) SnmpCollectionPanel(org.opennms.features.vaadin.datacollection.SnmpCollectionPanel)

Aggregations

TabSheet (com.vaadin.ui.TabSheet)1 SnmpCollectionPanel (org.opennms.features.vaadin.datacollection.SnmpCollectionPanel)1