Example usage for com.google.gwt.dom.client FieldSetElement as

List of usage examples for com.google.gwt.dom.client FieldSetElement as

Introduction

In this page you can find the example usage for com.google.gwt.dom.client FieldSetElement as.

Prototype

public static FieldSetElement as(Element elem) 

Source Link

Document

Assert that the given Element is compatible with this class and automatically typecast it.

Usage

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);
}