/** * Sets the label's content to the given HTML. * See {@link #setText(String)} for details on potential effects on direction * and alignment. * * @param html the new widget's HTML content */ public void setHTML(@IsSafeHtml String html) { directionalTextHelper.setHtml(html); updateHorizontalAlignment(); }
/** * Sets the label's content to the given HTML, applying the given direction. * See * {@link #setText(String, com.google.gwt.i18n.client.HasDirection.Direction) setText(String, Direction)} * for details on potential effects on alignment. * * @param html the new widget's HTML content * @param dir the content's direction. Note: {@code Direction.DEFAULT} means * direction should be inherited from the widget's parent element. */ public void setHTML(@IsSafeHtml String html, Direction dir) { directionalTextHelper.setHtml(html, dir); updateHorizontalAlignment(); }
/** * Sets the label's content to the given HTML. * See {@link #setText(String)} for details on potential effects on direction * and alignment. * * @param html the new widget's HTML content */ public void setHTML(String html) { directionalTextHelper.setTextOrHtml(html, true); updateHorizontalAlignment(); }
/** * Sets the label's content to the given HTML. * See {@link #setText(String)} for details on potential effects on direction * and alignment. * * @param html the new widget's HTML content */ public void setHTML(String html) { directionalTextHelper.setTextOrHtml(html, true); updateHorizontalAlignment(); }
/** * Sets the label's content to the given HTML, applying the given direction. * See * {@link #setText(String, com.google.gwt.i18n.client.HasDirection.Direction) setText(String, Direction)} * for details on potential effects on alignment. * * @param html the new widget's HTML content * @param dir the content's direction. Note: {@code Direction.DEFAULT} means * direction should be inherited from the widget's parent element. */ public void setHTML(String html, Direction dir) { directionalTextHelper.setTextOrHtml(html, dir, true); updateHorizontalAlignment(); }
/** * Sets the label's content to the given HTML, applying the given direction. * See * {@link #setText(String, com.google.gwt.i18n.client.HasDirection.Direction) setText(String, Direction)} * for details on potential effects on alignment. * * @param html the new widget's HTML content * @param dir the content's direction. Note: {@code Direction.DEFAULT} means * direction should be inherited from the widget's parent element. */ public void setHTML(String html, Direction dir) { directionalTextHelper.setTextOrHtml(html, dir, true); updateHorizontalAlignment(); }