messagePanel.clear();
}
@Override
public void appendMessage(final NotificationEvent notificationEvent) {
messagePanel.addOnTop(new NotificationItem(messages, notificationEvent,
this, true));
while (messagePanel.getWidgetCount() > messagesToKeep) {
messagePanel.remove(messagePanel.getWidgetCount() - 1);
}