|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
| ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå | ||||||||||
java.lang.Object | +--javax.swing.Popup
Popup ´Â À¯Àú¿¡°Ô Component ¸¦ Ç¥½ÃÇϱâ À§Çؼ »ç¿ëÇÕ´Ï´Ù. Åë»óÀÇ °æ¿ì, ƯÁ¤ÀÇ Æ÷ÇÔ °ü°èÀÇ °èÃþ¿¡ Á¸ÀçÇÏ´Â ´Ù¸¥ ¸ðµç Component À§¿¡ Component °¡ ¹èÄ¡µË´Ï´Ù. Popup ÀÇ ¶óÀÌÇÁ »çÀÌŬÀº ¸Å¿ì ª½À´Ï´Ù. Popup ¸¦ ÃëµæÇÏ°í ³ª¼ ºñÇ¥½Ã·Î ÇßÀ» (hide ¸Þ¼Òµå¸¦ È£ÃâÇÒ) °æ¿ì, ±× ÀÌÈÄ Popup ¿¡ ´ëÇØ¼ ¸Þ¼Òµå¸¦ È£ÃâÇÏÁö ¸»¾Æ ÁÖ¼¼¿ä. Popup ¸¦ ºñÇ¥½Ã·Î Çϸé(ÀÚ), ³ªÁß¿¡ »ç¿ëÇÒ ¼ö ÀÖ°Ô,PopupFactory °¡ Popup ¸¦ ij½¬¿¡ ±âÀÔÇÕ´Ï´Ù.
¹ü¿ë ±Ô¾à¿¡¼´Â Component ÀÇ »çÀÌÁî ¶Ç´Â Popup ÀÇ À§Ä¡¸¦ º¯°æÇÒ Çʿ䰡 ÀÖ´Â °æ¿ì, »õ·Î¿î Popup ¸¦ ÃëµæÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
Popup ´Â Component ·ÎºÎÅÍ ÆÄ»ýÇÏÁö ¾Ê½À´Ï´Ù. ¿ÀÈ÷·Á,Popup ÀÇ ±¸ÇöÀº ÀÚ±â ÀÚ½ÅÀÇ Component ÀÇ ÀÛ¼º°ú À¯Áö¸¦ ÀÚ½ÅÀ¸·Î ÇàÇØ, ¿ä±¸µÈ Component ¸¦ À¯Àú¿¡°Ô Ç¥½ÃÇÕ´Ï´Ù.
Åë»óÀÇ °æ¿ì,Popup ÀÇ ÀνºÅϽºÀÇ ¸í½ÃÀûÀÎ ÀÛ¼ºÀº ½Ç½ÃÇÏÁö ¾Ê½À´Ï´Ù. ´ë½Å¿¡,PopupFactory ·ÎºÎÅÍ ÀνºÅϽº¸¦ ÃëµæÇÕ´Ï´Ù.
PopupFactory | »ý¼ºÀÚÀÇ °³¿ä | |
protected |
Popup ()
Popup ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected |
Popup (Component owner,
Component contents,
int x,
int y)
ÄÄÆÛ³ÍÆ® contents ¸¦ Æ÷ÇÔÇÑ ÄÄÆÛ³ÍÆ® owner ÀÇ Popup ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
| ¸Þ¼ÒµåÀÇ °³¿ä | |
void |
hide ()
Popup ¸¦ ºñÇ¥½Ã·Î ÇØ, ÆÄ±âÇÕ´Ï´Ù. |
void |
show ()
Popup ¸¦ °¡½Ã·Î ÇÕ´Ï´Ù. |
| Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| »ý¼ºÀÚÀÇ »ó¼¼ |
protected Popup(Component owner,
Component contents,
int x,
int y)
contents ¸¦ Æ÷ÇÔÇÑ ÄÄÆÛ³ÍÆ® owner ÀÇ Popup ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. owner ´Â ¾î´À Window (»õ·Î¿î Popup)°¡ Popup ÀÇ ÀÛ¼ºÃ³ÀÇ Component ÀÇ ºÎ¸ð°¡ µÇ´ÂÁö¸¦ ÁöÁ¤Çϱâ À§Çؼ »ç¿ëÇÕ´Ï´Ù. owner °¡ null ÀÇ °æ¿ì, À¯È¿ÇÑ ºÎ¸ð°¡ ¾ø´Â °ÍÀ» ³ªÅ¸³À´Ï´Ù. x ¿Í y ¿¡´Â Popup ¸¦ ÃÖÃÊ·Î ¹èÄ¡ÇÏ´Â À§Ä¡¸¦ ÁöÁ¤ÇÕ´Ï´Ù. ȸéÀÇ »çÀÌÁ ´Ù¸¥ ÆÄ¶ó¹ÌÅÍ¿¡ µû¶ó¼´Â Popup °¡ x ¿Í y ¿¡ Ç¥½ÃµÇÁö ¾Ê´Â °ÍÀÌ ÀÖ½À´Ï´Ù.
owner - ¸¶¿ì½ºÀÇ ÁÂÇ¥ÀÇ ±âÁØÀÌ µÇ´Â Component. null µµ °¡´Écontents - Popup ÀÇ Contentsx - ÃʱâÀÇ x ȸé ÁÂÇ¥y - ÃʱâÀÇ y ȸé ÁÂÇ¥
IllegalArgumentException - contents °¡ null ÀÇ °æ¿ìprotected Popup()
Popup ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. ¼ºê Ŭ·¡½º¸¦ À§Çؼ(¶§¹®¿¡) ÁغñµÇ¾î ÀÖ½À´Ï´Ù.
| ¸Þ¼ÒµåÀÇ »ó¼¼ |
public void show()
Popup ¸¦ °¡½Ã·Î ÇÕ´Ï´Ù. ÇöÀç Popup °¡ °¡½ÃÀÇ °æ¿ì, ¾Æ¹«°Íµµ ½Ç½ÃÇÏÁö ¾Ê½À´Ï´Ù.
public void hide()
Popup ¸¦ ºñÇ¥½Ã·Î ÇØ, ÆÄ±âÇÕ´Ï´Ù. ÆÄ±âÇÑ Popup ¿¡ ´ëÇØ¼, ´õ ÀÌ»ó ¸Þ¼Òµå¸¦ È£ÃâÇÏÁö ¸»¾Æ ÁÖ¼¼¿ä. dispose °¡ ½ÇÇàµÈ Popup ´Â PopupFactory ¿¡ ±Ù°ÅÇØ Àç»ýµÇ¾î ³ªÁß¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù. µû¶ó¼,dispose °¡ ½ÇÇàµÈ Popup ¿¡ ´ëÇØ¼ ¸Þ¼Òµå¸¦ È£ÃâÇϸé(ÀÚ), ¿¹Ãø ºÒ°¡´ÉÇÑ °á°ú°¡ µË´Ï´Ù.
|
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.