eventTestLog.setInnerHTML("");
}
});
clearButton.getElement().setId(TestConstants.CLEAR_EVENT_LOG);
FlowPanel eventMain = new FlowPanel();
TextArea eventText = new TextArea();
eventText.getElement().setId(TestConstants.EVENT_INPUT);
eventTestLog.setId(TestConstants.EVENT_SIGNAL_LOG);
eventTestLog.getStyle().setBorderColor("black");
eventTestLog.getStyle().setBorderWidth(1, Unit.PX);
eventTestLog.getStyle().setBorderStyle(BorderStyle.SOLID);
for (String event : new String[] {"keydown", "keypress", "keyup"}) {
DomHelper.registerEventHandler(eventText.getElement(), event, new JavaScriptEventListener() {
public void onJavaScriptEvent(String name, Event event) {
SignalEvent signal = SignalEventImpl.create(event, true);
if (signal == null) {
return;
}