|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
| ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå | ||||||||||
java.lang.Object | +--javax.security.auth.callback.ChoiceCallback
ChoiceCallback ¸¦ ±âº» ½ÃÅ¥·¯Æ¼ ¼ºñ½º·Î ÀνºÅϽºÈÇØ CallbackHandler ÀÇ invokeCallback ¸Þ¼Òµå¿¡ °Ç³×ÁÖ¾î, ¼±Åà ¸®½ºÆ®¸¦ Ç¥½ÃÇØ, ¼±ÅÃÇÑ ¼±ÅûçÇ×À» °ËÃâÇÕ´Ï´Ù.
CallbackHandler ,
Á÷·ÄÈ µÈ Çü½Ä | »ý¼ºÀÚÀÇ °³¿ä | |
ChoiceCallback (String prompt,
String [] choices,
int defaultChoice,
boolean multipleSelectionsAllowed)
prompt, ¼±ÅûçÇ×ÀÇ ¸®½ºÆ®, µðÆúÆ® ¼±ÅÃ, ¹× ¼±Åà ¸®½ºÆ®·Î º¹¼ö ¼±ÅÃÀÌ °¡´ÉÇѰ¡ ¾î¶²°¡¸¦ ³ªÅ¸³»´Â ºÒ¸®¾ð °ªÀ» »ç¿ëÇØ, ChoiceCallback ¸¦ ±¸ÃàÇÕ´Ï´Ù.
|
|
| ¸Þ¼ÒµåÀÇ °³¿ä | |
boolean |
allowMultipleSelections ()
choices ¸®½ºÆ®·Î º¹¼ö ¼±ÅÃÀÌ °¡´ÉÇѰ¡ ¾î¶²°¡¸¦ ÀǹÌÇÏ´Â ºÒ¸®¾ð °ªÀ» ÃëµæÇÕ´Ï´Ù.
|
String [] |
getChoices ()
¼±ÅûçÇ×ÀÇ ¸®½ºÆ®¸¦ ÃëµæÇÕ´Ï´Ù. |
int |
getDefaultChoice ()
defaultChoice ¸¦ ÃëµæÇÕ´Ï´Ù. |
String |
getPrompt ()
prompt¸¦ ÃëµæÇÕ´Ï´Ù. |
int[] |
getSelectedIndexes ()
¼±ÅÃÇÑ ¼±ÅûçÇ×À» ÃëµæÇÕ´Ï´Ù. |
void |
setSelectedIndex (int selection)
¼±ÅÃÇÑ ¼±ÅûçÇ× (1 kr)À» ¼³Á¤ÇÕ´Ï´Ù. |
void |
setSelectedIndexes (int[] selections)
¼±ÅÃÇÑ ¼±ÅûçÇ× (º¹¼ö)À» ¼³Á¤ÇÕ´Ï´Ù. |
| Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| »ý¼ºÀÚÀÇ »ó¼¼ |
public ChoiceCallback(String prompt,
String [] choices,
int defaultChoice,
boolean multipleSelectionsAllowed)
ChoiceCallback ¸¦ ±¸ÃàÇÕ´Ï´Ù.
prompt - ¼±ÅûçÇ×ÀÇ ¸®½ºÆ®ÀÇ ±â¼ú¿¡ »ç¿ëÇÏ´Â prompt
choices - ¼±ÅûçÇ×ÀÇ ¸®½ºÆ®
defaultChoice - ¼±ÅûçÇ×ÀÇ ¸®½ºÆ®°¡ Ç¥½ÃµÇ¾úÀ» ¶§¿¡ µðÆúÆ®ÀÇ ¼±ÅûçÇ×À¸·Î¼ »ç¿ëµÇ´Â ¼±ÅûçÇ×. ÀÌ °ªÀº choices ¹è¿ÀÇ À妽º·Î¼ ³ªÅ¸³»Áø´Ù
multipleSelectionsAllowed - ¼±ÅûçÇ×ÀÇ ¸®½ºÆ®·Î º¹¼ö ¼±ÅÃÀÌ °¡´ÉÇѰ¡ ¾î¶²°¡¸¦ ÁöÁ¤ÇÏ´Â ºÒ¸®¾ð °ª
IllegalArgumentException - prompt °¡ null ÀÇ °æ¿ì,prompt ÀÇ ±æÀ̰¡ 0 ÀÇ °æ¿ì,choices °¡ null ÀÇ °æ¿ì,choices ÀÇ ±æÀ̰¡ 0 ÀÇ °æ¿ì,choices ÀÇ ¿ä¼Ò¿¡ null °¡ ÀÖ´Â °æ¿ì,choices ÀÇ ¿ä¼ÒÀÇ ¾î¶² °ÍÀΰ¡°¡ ±æÀÌ 0 ÀÎ °æ¿ì, ȤÀº defaultChoice °¡ choices ÀÇ ¹è¿ ¹üÀ§³»¿¡ ¾ø´Â °æ¿ì| ¸Þ¼ÒµåÀÇ »ó¼¼ |
public String getPrompt()
public String [] getChoices()
public int getDefaultChoice()
choices ¸®½ºÆ®ÀÇ À妽º·Î¼ ³ªÅ¸³»Áö´Â defaultChoicepublic boolean allowMultipleSelections()
choices ¸®½ºÆ®·Î º¹¼ö ¼±ÅÃÀÌ °¡´ÉÇѰ¡ ¾î¶²°¡¸¦ ÀǹÌÇÏ´Â ºÒ¸®¾ð °ªÀ» ÃëµæÇÕ´Ï´Ù.
public void setSelectedIndex(int selection)
selection - choices ¸®½ºÆ®ÀÇ À妽º·Î¼ ³ªÅ¸³»Áö´Â ¼±Åà ³»¿ë (1 kr)getSelectedIndexes() public void setSelectedIndexes(int[] selections)
selections - choices ¸®½ºÆ®ÀÇ À妽º·Î¼ ³ªÅ¸³»Áö´Â ¼±Åà ³»¿ë (º¹¼ö)
UnsupportedOperationException - º¹¼ö ¼±ÅÃÀ» ÇÒ ¼ö ¾ø´Â °æ¿ì. À̰ÍÀº allowMultipleSelections ÀÇ °ªÀ¸·Î ³ªÅ¸³»Áö´ÂgetSelectedIndexes() public int[] getSelectedIndexes()
choices ¸®½ºÆ®ÀÇ À妽º·Î¼ ³ªÅ¸³»Áö´ÂsetSelectedIndexes(int[])
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
| ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå | ||||||||||
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.