localDomain, user, messages);
controller.install(panel.getHandlers());
}
private void install(EventHandlerRegistry handlers) {
handlers.registerClickHandler(TypeCodes.kind(Type.ADD_PARTICIPANT), new WaveClickHandler() {
@Override
public boolean onClick(ClickEvent event, Element context) {
handleAddButtonClicked(context);
return true;
}
});
handlers.registerClickHandler(TypeCodes.kind(Type.NEW_WAVE_WITH_PARTICIPANTS),
new WaveClickHandler() {
@Override
public boolean onClick(ClickEvent event, Element context) {
handleNewWaveWithParticipantsButtonClicked(context);
return true;
}
});
handlers.registerClickHandler(TypeCodes.kind(Type.PARTICIPANT), new WaveClickHandler() {
@Override
public boolean onClick(ClickEvent event, Element context) {
handleParticipantClicked(context);
return true;
}