|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
public interface NodeList
NodeList 介面提供對節點的有序集合的抽象,沒有定義或約束如何實作此集合。DOM 中的 NodeList 物件是活動的。
NodeList 中的項可以通過從 0 開始的整數索引進行存取。
另請參見 Document Object Model (DOM) Level 3 Core Specification。
| 方法摘要 | |
|---|---|
int |
getLength()
列表中的節點數。 |
Node |
item(int index)
返回集合中的第 index 個項。 |
| 方法詳細資訊 |
|---|
Node item(int index)
index 個項。如果 index 大於或等於此列表中的節點數,則返回 null。
index - 集合中的索引。
NodeList 中 index 位置處的節點;如果索引是無效索引,則返回 null。int getLength()
length-1(包含此值)。
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。