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