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

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

Introduction

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

Prototype

public boolean isDisabled() 

Source Link

Document

The control is unavailable in this context.

Usage

From source file:com.arcbees.chosen.client.SelectParser.java

License:Apache License

private void addGroup(OptGroupElement group) {
    int position = parsed.size();

    GroupItem item = new GroupItem();
    item.arrayIndex = position;/*from  w  ww  .ja v a 2 s.  c o m*/
    item.label = group.getLabel();
    item.children = 0;
    item.disabled = group.isDisabled();

    parsed.add(item);

    NodeList<Node> children = group.getChildNodes();
    for (int i = 0; i < children.getLength(); i++) {
        Node n = children.getItem(i);
        if ("OPTION".equalsIgnoreCase(n.getNodeName())) {
            addOption(OptionElement.as((Element) n), position, group.isDisabled());
        }
    }
}

From source file:com.watopi.chosen.client.SelectParser.java

License:Open Source License

private void addGroup(OptGroupElement group) {
    int position = parsed.length();

    GroupItem item = new GroupItem();
    item.arrayIndex = position;//from w  w w .  ja  v  a  2s .co m
    item.label = group.getLabel();
    item.children = 0;
    item.disabled = group.isDisabled();

    parsed.add(item);

    NodeList<Node> children = group.getChildNodes();
    for (int i = 0; i < children.getLength(); i++) {
        Node n = children.getItem(i);
        if ("OPTION".equalsIgnoreCase(n.getNodeName())) {
            addOption(OptionElement.as((Element) n), position, group.isDisabled());
        }
    }

}