|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.PopupFactory
PopupFactory
´Â À̸§À¸·ÎºÎÅÍ ¾Ëµµ·Ï(µíÀÌ),Popup
ÀÇ ÀνºÅϽº¸¦ ÃëµæÇϱâ À§Çؼ »ç¿ëÇÕ´Ï´Ù. Popup
´Â ƯÁ¤ÀÇ Æ÷ÇÔ °ü°èÀÇ °èÃþ¿¡ Á¸ÀçÇÏ´Â ´Ù¸¥ ¸ðµç Component
À§¿¡ Component
¸¦ ¹èÄ¡Çϱâ À§Çؼ »ç¿ëÇÕ´Ï´Ù. ¹ü¿ë ±Ô¾à¿¡¼´Â PopupFactory
·ÎºÎÅÍ Popup
¸¦ ÃëµæÇßÀ» °æ¿ì, ±× Popup
¿¡ ´ëÇØ¼ hide
¸¦ È£ÃâÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. Åë»óÀº ´ÙÀ½°ú °°ÀÌ »ç¿ëÇÕ´Ï´Ù.
PopupFactory factory = PopupFactory.getSharedInstance(); Popup popup = factory.getPopup(owner, contents, x, y); popup.show(); ... popup.hide();
Popup
»ý¼ºÀÚÀÇ °³¿ä | |
PopupFactory ()
|
¸Þ¼ÒµåÀÇ °³¿ä | |
Popup |
getPopup (Component owner,
Component contents,
int x,
int y)
ÄÄÆÛ³ÍÆ® contents ¸¦ Æ÷ÇÔÇÑ ÄÄÆÛ³ÍÆ® owner ÀÇ Popup ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
static PopupFactory |
getSharedInstance ()
Popup ¸¦ ÃëµæÇϱâ À§Çؼ »ç¿ëÇÒ ¼ö ÀÖ´Â °øÀ¯ PopupFactory ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
static void |
setSharedInstance (PopupFactory factory)
AppContext °íÀ¯ÀÇ PopupFactory ¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
»ý¼ºÀÚÀÇ »ó¼¼ |
public PopupFactory()
¸Þ¼ÒµåÀÇ »ó¼¼ |
public static void setSharedInstance(PopupFactory factory)
AppContext
°íÀ¯ÀÇ PopupFactory
¸¦ ¼³Á¤ÇÕ´Ï´Ù. factory
°¡ null ÀÇ °æ¿ì,IllegalArgumentException
¸¦ ½½·Î¿ì ÇÕ´Ï´Ù.
factory
- °øÀ¯ PopupFactory
IllegalArgumentException
- factory
°¡ null ÀÇ °æ¿ìpublic static PopupFactory getSharedInstance()
Popup
¸¦ ÃëµæÇϱâ À§Çؼ »ç¿ëÇÒ ¼ö ÀÖ´Â °øÀ¯ PopupFactory
¸¦ µ¹·ÁÁÝ´Ï´Ù.
public Popup getPopup(Component owner, Component contents, int x, int y) throws IllegalArgumentException
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 ÀÇ °æ¿ì
|
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.