Package elemental.html

Examples of elemental.html.HTMLCollection


  public boolean setActiveTab(T tab) {
    if (getActiveTab() == tab) {
      return true;
    }

    HTMLCollection nodes = container.getChildren();
    for (int i = 0; i < nodes.getLength(); i++) {
      @SuppressWarnings("unchecked")
      TabElement<T> element = (TabElement<T>) nodes.item(i);
      if (element.getTabData().equals(tab)) {
        setActiveTab(element);
        return true;
      }
    }
View Full Code Here


    /**
     * Removes all sections DOM from the AwesomeBox.
     */
    private void clearSections() {
      HTMLCollection elements = getElement().getChildren();
      for (int l = elements.getLength() - 1; l >= 0; l--) {
        if (elements.item(l) != mainInput) {
          elements.item(l).removeFromParent();
        }
      }
    }
View Full Code Here

        }
      }
    }
   
    this.modules = Collections.mapFromStringTo();
    HTMLCollection opts = (list).getOptions();
    int m = opts.length();
    if (m == 0) {
      m = modules.size();
      for (int i = 0; i < m; i++) {
        list.appendChild(createOption(modules.get(i), i == 0));
      }
    } else {
      // There are modules, let's merge
      MapFromStringTo<Node> existing = Collections.mapFromStringTo();
      for (int i = 0; i < m; i++) {
        Node opt = opts.item(i);
        Node attr = opt.getAttributes().getNamedItem("value");
        if (attr != null)
          existing.put(attr.getNodeValue(), opt);
      }
      m = modules.size();
View Full Code Here

TOP

Related Classes of elemental.html.HTMLCollection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.