/** * Set the text of the notification with given String * <p> * NOTE: When mixing this method with {@link #Notification()} and * {@link #Notification(Component...)}. Method will remove all the * components from the notification. * * @param text * the text of the Notification */ public void setText(String text) { removeAll(); deferredJob = NO_OP; templateElement.setProperty("innerHTML", HtmlUtils.escape(text)); }