table.setRowHeight(tableData.size(), table.getRowHeight() * 20);
}
} else {
String label = "SLAThresholdEvent."+eventNode.getValueAt(0);
tableData.put("Event", label);
SLAThresholdEvent slaEvent = (SLAThresholdEvent)event;
StringBuilder builder = new StringBuilder();
builder.append("low=").append(slaEvent.getSLA().getCurrentLowThreshold());
builder.append(" high=").append(slaEvent.getSLA().getCurrentHighThreshold());
tableData.put("When", Constants.DATE_FORMAT.format(event.getDate()));
tableData.put("Deployment", slaEvent.getServiceElement().getOperationalStringName());
tableData.put("Service", slaEvent.getServiceElement().getName());
tableData.put("Machine", slaEvent.getHostAddress());
tableData.put("Value", numberFormatter.format(slaEvent.getCalculable().getValue()));
tableData.put("Threshold Values", builder.toString());
tableData.put("Policy Handler", slaEvent.getSLAPolicyHandlerDescription());
}
this.fireTableDataChanged();
}