/** * Creates an HTML widget with the specified contents, optionally treating it * as HTML, and optionally disabling word wrapping. * * @param html the widget's contents * @param wordWrap <code>false</code> to disable word wrapping */ public HTML(@IsSafeHtml String html, boolean wordWrap) { this(html); setWordWrap(wordWrap); }
/** * Creates an HTML widget with the specified contents, optionally treating it * as HTML, and optionally disabling word wrapping. * * @param html the widget's contents * @param wordWrap <code>false</code> to disable word wrapping */ public HTML(String html, boolean wordWrap) { this(html); setWordWrap(wordWrap); }
/** * Creates an HTML widget with the specified contents, optionally treating it * as HTML, and optionally disabling word wrapping. * * @param html the widget's contents * @param wordWrap <code>false</code> to disable word wrapping */ public HTML(String html, boolean wordWrap) { this(html); setWordWrap(wordWrap); }
private void createDescriptionPopup() { descriptionPopup = new VOverlay(); descriptionPopup.setOwner(getOwner()); descriptionPopup.setStylePrimaryName("aceeditor-suggestpopup-description"); HTML lbl = new HTML(); lbl.setWordWrap(true); descriptionPopup.setWidget(lbl); updateDescriptionPopupPosition(); descriptionPopup.setWidth(DESCRIPTION_WIDTH+"px"); // descriptionPopup.setSize(DESCRIPTION_WIDTH+"px", HEIGHT+"px"); }
protected void createDescriptionPopup() { descriptionPopup = new VOverlay(); descriptionPopup.setOwner(getOwner()); descriptionPopup.setStylePrimaryName("aceeditor-suggestpopup-description"); HTML lbl = new HTML(); lbl.setWordWrap(true); descriptionPopup.setWidget(lbl); updateDescriptionPopupPosition(); descriptionPopup.setWidth(DESCRIPTION_WIDTH+"px"); // descriptionPopup.setSize(DESCRIPTION_WIDTH+"px", HEIGHT+"px"); }