// Override the default implementation public static SystemMessages getSystemMessages() { CustomizedSystemMessages messages = new CustomizedSystemMessages(); messages.setCommunicationErrorCaption("Comm Err"); messages.setCommunicationErrorMessage("This is really bad."); messages.setCommunicationErrorNotificationEnabled(false); messages.setCommunicationErrorURL("http://vaadin.com"); return messages; }
public static SystemMessages getSystemMessages() { CustomizedSystemMessages m = new CustomizedSystemMessages(); m.setSessionExpiredURL(null); m.setSessionExpiredNotificationEnabled(true); m.setSessionExpiredCaption( FactoryI18nManager.getI18nManager() .getMessageAppVaadin(MessageAppVaadin.SESSION_EXPIRED_CAPTION)); m.setSessionExpiredMessage( FactoryI18nManager.getI18nManager() .getMessageAppVaadin(MessageAppVaadin.SESSION_EXPIRED_MESSAGE)); m.setInternalErrorURL(null); m.setInternalErrorNotificationEnabled(true); m.setInternalErrorCaption( FactoryI18nManager.getI18nManager() .getMessageAppVaadin(MessageAppVaadin.INTERNAL_ERROR_CAPTION)); m.setInternalErrorMessage( FactoryI18nManager.getI18nManager() .getMessageAppVaadin(MessageAppVaadin.INTERNAL_ERROR_MESSAGE)); m.setOutOfSyncURL(null); m.setOutOfSyncNotificationEnabled(true); m.setOutOfSyncCaption( FactoryI18nManager.getI18nManager() .getMessageAppVaadin(MessageAppVaadin.OUT_OF_SYNC_CAPTION)); m.setOutOfSyncMessage( FactoryI18nManager.getI18nManager() .getMessageAppVaadin(MessageAppVaadin.OUT_OF_SYNC_MESSAGE)); m.setAuthenticationErrorNotificationEnabled(true); m.setAuthenticationErrorCaption( FactoryI18nManager.getI18nManager() .getMessageAppVaadin(MessageAppVaadin.AUTHENTICATION_ERROR_CAPTION)); m.setAuthenticationErrorMessage( FactoryI18nManager.getI18nManager() .getMessageAppVaadin(MessageAppVaadin.AUTHENTICATION_ERROR_MESSAGE)); m.setCommunicationErrorCaption( FactoryI18nManager.getI18nManager() .getMessageAppVaadin(MessageAppVaadin.COMMUNICATION_ERROR_CAPTION)); m.setCommunicationErrorMessage( FactoryI18nManager.getI18nManager() .getMessageAppVaadin(MessageAppVaadin.COMMUNICATION_ERROR_MSG)); m.setCookiesDisabledCaption( FactoryI18nManager.getI18nManager() .getMessageAppVaadin(MessageAppVaadin.COOKIES_DISABLE_CAPTION)); m.setCookiesDisabledMessage( FactoryI18nManager.getI18nManager() .getMessageAppVaadin(MessageAppVaadin.COOKIES_DISABLE_MESSAGE)); return m; }