001/* 002 * To change this license header, choose License Headers in Project Properties. 003 * To change this template file, choose Tools | Templates 004 * and open the template in the editor. 005 */ 006package gwt.material.design.jscore.client.api.core; 007 008import jsinterop.annotations.JsProperty; 009import jsinterop.annotations.JsType; 010 011/** 012 * 013 * @author iron 014 */ 015@JsType(isNative = true) 016public class NodeList { 017 018 /** 019 * This attribute specifies the length or size of the list. 020 */ 021 @JsProperty 022 public native int getLength(); 023 024 /** 025 * This method retrieves a node specified by ordinal index. Nodes are 026 * numbered in tree order (depth-first traversal order). 027 * 028 * @param index The index of the node to be fetched. The index origin is 0. 029 * @return The <code>Node</code> at the corresponding position upon success. 030 * A value of <code>null</code> is returned if the index is out of range. 031 */ 032 public native Node item(int index); 033 034}