/** @inheritDoc */ @Override public String getMessageTextAsHTML() { String msg = ""; msg += "<font color=" + Constants.NOTIFICATION_COLOR + ">"; msg += name + " " + settings.getLanguage().getLabel("text_leftchat"); msg += "</font>"; return msg; }
/** @inheritDoc */ @Override public String getMessageText() { String msg = name + " " + settings.getLanguage().getLabel("text_leftchat"); return msg; }
/** * Constructor. Creates a new chat message which informs about the leaving of a participant. * * @param name The name of the user which has left the chat. */ public ChatLeftMessage(String name) { this.name = name; settings = Settings.getInstance(); }