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

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

Introduction

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

Prototype

public static OptGroupElement 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.arcbees.chosen.client.SelectParser.java

License:Apache License

private void addNode(Node child) {
    if (!Element.is(child)) {
        return;/*from  w  ww.jav  a  2  s.co  m*/
    }

    Element e = Element.as(child);

    if ("OPTGROUP".equalsIgnoreCase(e.getNodeName())) {
        addGroup(OptGroupElement.as(e));
    } else if ("OPTION".equalsIgnoreCase(e.getNodeName())) {
        addOption(OptionElement.as(e), -1, false);
    }
}

From source file:gwt.material.design.client.ui.html.OptGroup.java

License:Apache License

/**
 * Option label for use in hierarchical menus.
 *
 * @see <a/*www .  j  av a2s . c  om*/
 * href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-label-OPTION">W3C
 * HTML Specification</a>
 */
public String getLabel() {
    return OptGroupElement.as(this.getElement()).getLabel();
}

From source file:gwt.material.design.client.ui.html.OptGroup.java

License:Apache License

/**
 * The control is unavailable in this context.
 *
 * @see <a// w w w.  ja  v  a 2s. c  o m
 * href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-disabled">W3C
 * HTML Specification</a>
 */
public boolean isDisabled() {
    return OptGroupElement.as(this.getElement()).isDisabled();
}

From source file:gwt.material.design.client.ui.html.OptGroup.java

License:Apache License

/**
 * The control is unavailable in this context.
 *
 * @see <a/*ww  w  .ja  v a  2 s .  co m*/
 * href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-disabled">W3C
 * HTML Specification</a>
 */
public void setDisabled(boolean disabled) {
    OptGroupElement.as(this.getElement()).setDisabled(disabled);
}

From source file:gwt.material.design.client.ui.html.OptGroup.java

License:Apache License

/**
 * Option label for use in hierarchical menus.
 *
 * @see <a//from   w w  w  . j  a v  a2 s  .c o m
 * href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-label-OPTION">W3C
 * HTML Specification</a>
 */
public void setLabel(String label) {
    OptGroupElement.as(this.getElement()).setLabel(label);
}