Example #1
0
 /**
  * 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");
 }
Example #2
0
 /**
  * Gets the events.
  *
  * @return the events
  */
 public List<org.opennms.netmgt.xml.eventconf.Event> getOnmsEvents() {
   return container.getOnmsBeans();
 }
Example #3
0
 /**
  * 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;
 }
Example #4
0
 /**
  * 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);
 }