HTML htmlPanel = new HTML(); String html = MyHtmlResources.INSTANCE.getIntroHtml().getText(); htmlPanel.setHTML(html);
/** * Creates an HTML widget with the specified HTML contents. * * @param html the new widget's HTML contents */ public HTML(@IsSafeHtml String html) { this(); setHTML(html); }
/** * Creates an HTML widget with the specified HTML contents and with the * specified direction. * * @param html the new widget's HTML contents * @param dir the content's direction. Note: {@code Direction.DEFAULT} means * direction should be inherited from the widget's parent element. */ public HTML(@IsSafeHtml String html, Direction dir) { this(); setHTML(html, dir); }
/** * Sets this object's contents via known-safe HTML. * * @see com.google.gwt.safehtml.client.HasSafeHtml#setHTML(SafeHtml) * @param html the html to set. */ public void setHTML(SafeHtml html) { setHTML(html.asString()); }
/** * Creates an HTML widget with the specified HTML contents and specifies a * direction estimator. * * @param html the new widget's SafeHtml contents * @param directionEstimator A DirectionEstimator object used for automatic * direction adjustment. For convenience, * {@link Label#DEFAULT_DIRECTION_ESTIMATOR} can be used. */ public HTML(SafeHtml html, DirectionEstimator directionEstimator) { this(); setDirectionEstimator(directionEstimator); setHTML(html); }
public void setHTML(SafeHtml html, Direction dir) { setHTML(html.asString(), dir); }
/** * Let the page know that the table is loading. Call this method to clear all * data from the table and hide the current range when new data is being * loaded into the table. */ public void startLoading() { getDisplay().setRowCount(0, true); label.setHTML(""); }
/** * Inserts a widget into the panel. If the Widget is already attached, it will * be moved to the requested index. * * @param child the widget to be added * @param text the text to be shown on its header * @param asHtml <code>true</code> to treat the specified text as HTML * @param headerSize the size of the header widget * @param beforeIndex the index before which it will be inserted */ public void insert( Widget child, @IsSafeHtml String text, boolean asHtml, double headerSize, int beforeIndex) { HTML contents = new HTML(); if (asHtml) { contents.setHTML(text); } else { contents.setText(text); } insert(child, contents, headerSize, beforeIndex); }
/** * Creates an HTML widget with the specified HTML contents. * * @param html the new widget's HTML contents */ public HTML(String html) { this(); setHTML(html); }
@Override public void setHTML(final String html) { String htmlToSet = html; if (html == null) { htmlToSet = ""; } textContainer.setHTML(htmlToSet); }
/** * Creates an HTML widget with the specified HTML contents. * * @param html the new widget's HTML contents */ public HTML(String html) { this(); setHTML(html); }
/** * Creates an HTML widget with the specified HTML contents and with the * specified direction. * * @param html the new widget's HTML contents * @param dir the content's direction. Note: {@code Direction.DEFAULT} means * direction should be inherited from the widget's parent element. */ public HTML(String html, Direction dir) { this(); setHTML(html, dir); }
@Override public void setHTML( String html ) { this.html.setHTML( html ); }
/** * Sets this object's contents via known-safe HTML. * * @see com.google.gwt.safehtml.client.HasSafeHtml#setHTML(SafeHtml) * @param html the html to set. */ public void setHTML(SafeHtml html) { setHTML(html.asString()); }
/** * Let the page know that the table is loading. Call this method to clear * all data from the table and hide the current range when new data is being * loaded into the table. */ public void startLoading() { getDisplay().setRowCount(0, true); label.setHTML(""); }
public void onPageChange(PageChangeEvent event) { currentPageBox.setText((event.getNewPage() + 1) + ""); loadingImage.setVisible(true); errorLabel.setHTML(""); } });
@Override public void setText( String text ) { this.html.setHTML( new SafeHtmlBuilder().appendEscaped( text ).toSafeHtml() ); } }
public void setContentInfo(String info) { header.getInfoLabel().setHTML(info); header.getInfoLabel().removeStyleName("content-warning"); header.getInfoLabel().addStyleName("content-info"); }
public void setContentInfo(String info){ header.getInfoLabel().setHTML(info); header.getInfoLabel().removeStyleName("content-warning"); header.getInfoLabel().addStyleName("content-info"); }
public void setContentWarning(String info){ header.getInfoLabel().setHTML(info); header.getInfoLabel().removeStyleName("content-info"); header.getInfoLabel().addStyleName("content-warning"); }