|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
public interface HasControls
此介面用於返回控制元件,並使物件返回在 NamingEnumeration 中。例如,假定伺服器利用搜尋操作的結果發送回控制元件,服務提供者將返回型別為 SearchResult 並實作 HasControls 的物件所組成的 NamingEnumeration。
NamingEnumeration elts = ectx.search((Name)name, filter, sctls);
while (elts.hasMore()) {
Object entry = elts.next();
// Get search result
SearchResult res = (SearchResult)entry;
// do something with it
// Get entry controls
if (entry instanceof HasControls) {
Control[] entryCtls = ((HasControls)entry).getControls();
// do something with controls
}
}
| 方法摘要 | |
|---|---|
Control[] |
getControls()
從實作此介面的物件中檢索 Control 陣列。 |
| 方法詳細資訊 |
|---|
Control[] getControls()
throws NamingException
NamingException - 如果因出錯而無法返回控制元件。
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。