});
aConversationChannelPanel.addChannelSelectListener(new ChannelSelectListener() {
public void onSelect(final String aChannel) {
if(myChannel != null && !aChannel.equals(myChannel.getName())) {
final MessageBox theMessageBox = MessageBoxCreator.createYesNoMessage("Join channel \"" + aChannel + "\"?");
theMessageBox.addButtonListener(new MessageButtonListener() {
public void onClick(Button aButton) {
switch(aButton) {
case YES:
myConversationService.join(myUser, aChannel, new VoidAsyncCallback<Channel>());
default:
theMessageBox.close();
}
}
});
}
}