List of usage examples for com.google.gwt.dom.client OptGroupElement isDisabled
public boolean isDisabled()
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()); } } }