List of usage examples for com.google.gwt.safehtml.shared SafeHtmlUtils EMPTY_SAFE_HTML
SafeHtml EMPTY_SAFE_HTML
To view the source code for com.google.gwt.safehtml.shared SafeHtmlUtils EMPTY_SAFE_HTML.
Click Source Link
From source file:com.sencha.gxt.theme.base.client.menu.MenuItemBaseAppearance.java
License:sencha.com license
@Override public void setWidget(XElement parent, Widget widget) { XElement oldIcon = parent.selectNode("." + style.menuItemIcon()); getAnchor(parent).setInnerSafeHtml(SafeHtmlUtils.EMPTY_SAFE_HTML); getAnchor(parent).appendChild(widget.getElement()); if (oldIcon != null) { getAnchor(parent).insertFirst(oldIcon); }//from ww w .j a va 2s .c o m }
From source file:com.sencha.gxt.theme.base.client.statusproxy.StatusProxyBaseAppearance.java
License:sencha.com license
@Override public void setStatus(Element parent, ImageResource icon) { XElement wrap = iconWrap(parent);/*from w ww. j a v a2 s.com*/ wrap.setInnerSafeHtml(SafeHtmlUtils.EMPTY_SAFE_HTML); if (icon != null) { wrap.appendChild(getImage(icon)); } }
From source file:com.sencha.gxt.theme.base.client.tips.TipDefaultAppearance.java
License:sencha.com license
@Override public void updateContent(XElement parent, SafeHtml title, SafeHtml body) { XElement header = getHeaderElement(parent); if (title == SafeHtmlUtils.EMPTY_SAFE_HTML) { header.getParentElement().getStyle().setDisplay(Display.NONE); } else {// w w w . j a v a2 s . c o m header.setInnerSafeHtml(title); header.getParentElement().getStyle().setDisplay(Display.BLOCK); } getBodyElement(parent).setInnerSafeHtml(body); }
From source file:com.sencha.gxt.widget.core.client.box.AutoProgressMessageBox.java
License:sencha.com license
/** * Creates a progress message box with the specified heading HTML. The * progress bar auto-updates using the current duration, increment, and * interval (see {@link #getProgressBar()}. * * @param headingText the text to display for the message box heading. *//*from ww w . j a va2s .c om*/ public AutoProgressMessageBox(String headingText) { this(SafeHtmlUtils.fromString(headingText), SafeHtmlUtils.EMPTY_SAFE_HTML); }
From source file:com.sencha.gxt.widget.core.client.box.AutoProgressMessageBox.java
License:sencha.com license
/** * Creates a progress message box with the specified heading HTML. The * progress bar auto-updates using the current duration, increment, and * interval (see {@link #getProgressBar()}. * * @param headingHtml the HTML to display for the message box heading *//*from ww w . j a va2 s.co m*/ public AutoProgressMessageBox(SafeHtml headingHtml) { this(headingHtml, SafeHtmlUtils.EMPTY_SAFE_HTML); }
From source file:com.sencha.gxt.widget.core.client.box.MessageBox.java
License:sencha.com license
/** * Creates a message box with the specified heading text. * * @param headingText the text to display for the message box heading. *//*from w w w .j a v a 2 s . co m*/ public MessageBox(String headingText) { this(SafeHtmlUtils.fromString(headingText), SafeHtmlUtils.EMPTY_SAFE_HTML); }
From source file:com.sencha.gxt.widget.core.client.box.MessageBox.java
License:sencha.com license
/** * Creates a message box with the specified heading text. * * @param headingHtml the html to display for the message box heading *//*from w w w . ja va2 s. co m*/ public MessageBox(SafeHtml headingHtml) { this(headingHtml, SafeHtmlUtils.EMPTY_SAFE_HTML); }
From source file:com.sencha.gxt.widget.core.client.box.MessageBox.java
License:sencha.com license
/** * Sets the message. HTML in the message is escaped. * Use {@link #setMessage(SafeHtml)} to display HTML. * * @param message the message//from w w w.j a v a 2s . c om */ public void setMessage(String message) { if (message == null) { setMessage(SafeHtmlUtils.EMPTY_SAFE_HTML); } else { setMessage(SafeHtmlUtils.fromString(message)); } }
From source file:com.sencha.gxt.widget.core.client.box.MessageBox.java
License:sencha.com license
/** * Sets the message.// w ww.ja va 2 s .com * * @param message the message */ public void setMessage(SafeHtml message) { if (message == null) { messageBoxAppearance.getMessageElement(getElement()).setInnerSafeHtml(SafeHtmlUtils.EMPTY_SAFE_HTML); } else { messageBoxAppearance.getMessageElement(getElement()).setInnerSafeHtml(message); } }
From source file:com.sencha.gxt.widget.core.client.box.ProgressMessageBox.java
License:sencha.com license
/** * Creates a progress message box with the specified heading HTML. * * @param headingText the text to display for the message box heading. *//*from w ww.ja va2 s . co m*/ public ProgressMessageBox(String headingText) { this(SafeHtmlUtils.fromString(headingText), SafeHtmlUtils.EMPTY_SAFE_HTML); }