outCount++;
display.show();
}
});
} else if (infoType == InfoTypes.Info) {
eventBus.addHandler(UserMessageEvent.TYPE, new UserMessageEventHandler() {
@Override
public void showMessage(UserMessageEvent event) {
style(event.getInfoType());
if (event.getMessage() != null && !"".equals(event.getMessage())) {
display.setMessage(event.getMessage());
} else {
if (!display.getMessage().equals(defaultMessage)) {
setMessage(defaultMessage);
}
}
display.show();
setTimeout(event.getHideAfeter() != 0 ? event.getHideAfeter() : timeout);
}
});
} else if (infoType == InfoTypes.Error) {
eventBus.addHandler(UserMessageEvent.TYPE, new UserMessageEventHandler() {
@Override
public void showMessage(UserMessageEvent event) {
if (event.getInfoType() == InfoTypes.Error) {
style(event.getInfoType());
display.show();