/** * Instantiates a new event table. * * @param events the OpenNMS events */ public EventTable(final List<org.opennms.netmgt.xml.eventconf.Event> events) { container.addAll(events); setContainerDataSource(container); setImmediate(true); setSelectable(true); addStyleName("light"); setVisibleColumns(new Object[] {"eventLabel", "uei"}); setColumnHeaders(new String[] {"Event Label", "Event UEI"}); setWidth("100%"); setHeight("250px"); }
/** * Gets the events. * * @return the events */ public List<org.opennms.netmgt.xml.eventconf.Event> getOnmsEvents() { return container.getOnmsBeans(); }
/** * Adds the event. * * @param event the new event * @return the eventId */ public Object addEvent(org.opennms.netmgt.xml.eventconf.Event event) { Object eventId = container.addOnmsBean(event); select(eventId); return eventId; }
/** * Gets the event. * * @param eventId the event ID (the Item ID associated with the container) * @return the event */ public org.opennms.netmgt.xml.eventconf.Event getEvent(Object eventId) { return container.getOnmsBean(eventId); }