List of usage examples for com.google.gwt.safehtml.shared SafeHtmlUtils fromString
public static SafeHtml fromString(String s)
From source file:com.sencha.gxt.widget.core.client.info.DefaultInfoConfig.java
License:sencha.com license
/** * Creates a new config for an Info to display. * // w w w . j a v a 2 s . c om * @param appearance the appearance to use * @param titleText the title text * @param messageText the message text */ public DefaultInfoConfig(DefaultInfoConfigAppearance appearance, String titleText, String messageText) { this(appearance, SafeHtmlUtils.fromString(titleText), SafeHtmlUtils.fromString(messageText)); }
From source file:com.sencha.gxt.widget.core.client.info.DefaultInfoConfig.java
License:sencha.com license
public void setMessage(String message) { setMessage(SafeHtmlUtils.fromString(message)); }
From source file:com.sencha.gxt.widget.core.client.info.DefaultInfoConfig.java
License:sencha.com license
public void setTitle(String title) { setTitle(SafeHtmlUtils.fromString(title)); }
From source file:com.sencha.gxt.widget.core.client.ListView.java
License:sencha.com license
/** * Sets the loading indicator as text to be displayed during a load request. * <p/>//from ww w .j a v a2 s .c om * <ul> * <li>The {@link #setLoader(Loader)} has to be set for this use. * <li>The css class name 'loading-indicator' can style the loading indicator text. * </ul> * * @param text the loading text */ public void setLoadingIndicator(String text) { this.loadingIndicator = SafeHtmlUtils.fromString(text); }
From source file:com.sencha.gxt.widget.core.client.ListView.java
License:sencha.com license
protected void bufferRender(List<M> models, SafeHtmlBuilder sb) { for (int i = 0, len = models.size(); i < len; i++) { M m = models.get(i);/*from ww w . j a v a2s . c om*/ SafeHtmlBuilder cellBuilder = new SafeHtmlBuilder(); N v = getValue(m); if (cell == null) { String text = null; if (v != null) { text = v.toString(); } cellBuilder.append(Util.isEmptyString(text) ? Util.NBSP_SAFE_HTML : SafeHtmlUtils.fromString(text)); } else { Context context = new Context(i, 0, store.getKeyProvider().getKey(m)); cell.render(context, v, cellBuilder); } appearance.renderItem(sb, cellBuilder.toSafeHtml()); } }
From source file:com.sencha.gxt.widget.core.client.menu.MenuBarItem.java
License:sencha.com license
public MenuBarItem(String text, Menu menu, MenuBarItemAppearance appearance) { this(SafeHtmlUtils.fromString(text), menu, appearance); }
From source file:com.sencha.gxt.widget.core.client.TabItemConfig.java
License:sencha.com license
/** * Sets the content of the label as text. * * Text that contains reserved html characters will be escaped. * * @param text the label content text/*w w w. ja va2s. c o m*/ */ public void setContent(String text) { content = SafeHtmlUtils.fromString(text); }
From source file:com.sencha.gxt.widget.core.client.tips.ToolTipConfig.java
License:sencha.com license
/** * Sets the tool tip body as text.//from w ww .j a va 2s.c o m * * @param text the tip body text */ public void setBody(String text) { this.body = SafeHtmlUtils.fromString(text); }
From source file:com.sencha.gxt.widget.core.client.tips.ToolTipConfig.java
License:sencha.com license
/** * Sets the tool tip title as text//from www . ja v a 2s . c om * * @param text the title text */ public void setTitle(String text) { this.title = SafeHtmlUtils.fromString(text); }
From source file:com.sencha.gxt.widget.core.client.toolbar.LabelToolItem.java
License:sencha.com license
/** * Sets the item's label as text.// w w w . j a v a2 s . c o m * * Text that contains reserved html characters will be escaped. * * @param text the label text */ public void setLabel(String text) { setLabel(SafeHtmlUtils.fromString(text)); }