List of usage examples for com.google.gwt.safehtml.shared SafeHtmlUtils fromString
public static SafeHtml fromString(String s)
From source file:gwtquery.plugins.enhance.client.EnhanceGwtSample.java
License:Apache License
private void addChildren(TreeItem item, Widget w) { Iterator<Widget> children = WidgetsUtils.getChildren(w); if (children != null) { while (children.hasNext()) { Widget child = children.next(); TreeItem subItem = new TreeItem(SafeHtmlUtils.fromString(child.getClass().getName())); item.addItem(subItem);//from w w w.j a v a2s. c o m addChildren(subItem, child); } } }
From source file:io.pelle.mango.client.gwt.modules.dictionary.controls.table.ReferenceCell.java
License:Open Source License
@Override public void render(com.google.gwt.cell.client.Cell.Context context, IBaseVO value, SafeHtmlBuilder sb) { if (value != null) { sb.append(SafeHtmlUtils.fromString(DictionaryUtil.getLabel(referenceControlModel, value))); }//from w w w.jav a2 s . c om }
From source file:io.pelle.mango.client.gwt.modules.hierarchical.HierarchicalSafeHtmlRenderer.java
License:Open Source License
@Override public SafeHtml render(DictionaryHierarchicalNodeVO object) { return SafeHtmlUtils.fromString(object.getLabel()); }
From source file:io.pelle.mango.client.gwt.modules.hierarchical.HierarchicalSafeHtmlRenderer.java
License:Open Source License
@Override public void render(DictionaryHierarchicalNodeVO object, SafeHtmlBuilder builder) { builder.append(SafeHtmlUtils.fromString(object.getLabel())); }
From source file:mx.org.pescadormvp.examples.jsonp.client.query.QueryViewImpl.java
License:Open Source License
@Override public void renderQueryArea(String beforeQueryTextBox, String afterQueryTextBox) { beforeQueryTextBoxSpan.setInnerSafeHtml(SafeHtmlUtils.fromString(beforeQueryTextBox)); afterQueryTextBoxSpan.setInnerSafeHtml(SafeHtmlUtils.fromString(afterQueryTextBox)); queryStrip.getStyle().setVisibility(Visibility.VISIBLE); queryAreaRendered = true;//from www . j ava 2 s .co m fixLayout(); }
From source file:mx.org.pescadormvp.examples.jsonp.client.query.QueryViewImpl.java
License:Open Source License
@Override public void renderLatLon() { commonNonLoadingRender();/*from ww w . j a v a 2s . c o m*/ messageStrip.getStyle().setVisibility(Visibility.VISIBLE); messageContainer.setInnerSafeHtml(SafeHtmlUtils.fromString(latLonMsg)); // Note: the map location itself is set directly by the activity, // by way of the map object. setTextBoxEmbarassed(false); }
From source file:mx.org.pescadormvp.examples.jsonp.client.query.QueryViewImpl.java
License:Open Source License
private void renderLoading() { messageStrip.getStyle().setVisibility(Visibility.VISIBLE); messageContainer.setInnerSafeHtml(SafeHtmlUtils.fromString(loading)); loadingThobTimer = new Timer() { @Override//ww w. j a v a 2 s.com public void run() { loadingThrob.run(LOADING_THROBBER_THROB_MS); } }; loadingThobTimer.scheduleRepeating(LOADING_THROBBER_REPEAT_MS); setTextBoxEmbarassed(false); }
From source file:n3phele.client.presenter.helpers.StyledTextCellRenderer.java
License:Open Source License
public SafeHtml render(C object) { String name = this.getValue(object); return template.text(SafeHtmlUtils.fromString(name), getTooltip(object), style); }
From source file:n3phele.client.presenter.helpers.StyledTextCellRenderer.java
License:Open Source License
public void render(C object, SafeHtmlBuilder appendable) { String name = this.getValue(object); appendable.append(template.text(SafeHtmlUtils.fromString(name), name, style)); }
From source file:n3phele.client.widgets.IconText.java
License:Open Source License
public SafeHtml getTextHtml() { if (this.safeHTML == null) { if (this.text != null) { this.safeHTML = SafeHtmlUtils.fromString(this.text); } else {/*from ww w . j a v a 2 s . co m*/ this.safeHTML = SafeHtmlUtils.fromString(""); } } return this.safeHTML; }