List of usage examples for com.google.gwt.dom.client FieldSetElement as
public static FieldSetElement as(Element elem)
From source file:com.ritchey.client.view.CaptionPanel.java
License:Apache License
/** * Sets the caption for the panel using an HTML fragment. Pass in empty string * to remove the caption completely, leaving just the unadorned panel. * * @param html HTML for the new caption; must not be <code>null</code> *//*from w w w .j av a 2s . c o m*/ public void setCaptionHTML(String html) { assert (html != null); impl.setCaption(FieldSetElement.as(getElement()), legend, html, true); }
From source file:com.ritchey.client.view.CaptionPanel.java
License:Apache License
/** * Sets the caption for the panel using text that will be automatically * escaped. Pass in empty string to remove the caption completely, leaving * just the unadorned panel./*from w ww . j av a 2s.com*/ * * @param text text for the new caption; must not be <code>null</code> */ public void setCaptionText(String text) { assert (text != null); impl.setCaption(FieldSetElement.as(getElement()), legend, text, false); }