confGrid.setWidget(1, 3, setConfigButton);
setConfigButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
ConfigurationRequest cr = new ConfigurationRequest();
try {
cr.setMessageCount(messagesPerBurst.getValueOrThrow());
cr.setMessageInterval(burstInterval.getValueOrThrow());
cr.setPayloadSize(payloadSize.getValueOrThrow());
configurationEvent.fire(cr);
} catch (ParseException e) {
Window.alert("The configuration values all have to be whole, positive numbers.");
}
}