|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
public interface HasControls
이 인터페이스는, 객체가 NamingEnumerations 로 돌려주어질 때, 컨트롤을 돌려주는데 사용됩니다. 예를 들어, 서버가 검색 조작의 결과를 가지는 컨트롤을 돌려 보내는 경우, 서비스 프로바이더는, SearchResult 및 implement 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 Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.