|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
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 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.