|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: »óÀÚ | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.awt.dnd.DropTargetContext
public class DropTargetContext
DropTargetContext
´Â
µå·¡±×£¦µå·Ó Á¶ÀÛ¿¡ °ü·ÃÇÑ ³í¸® Ä¿¼°¡DropTarget
¿¡ °ü·ÃÇÑ Component
°¡½Ã Áö¿À¸ÞÆ®¸®¿Í °ãÄ¥ ¶§, ¾ðÁ¦³ª ÀÛ¼ºµË´Ï´Ù. DropTargetContext
´Â
µå·Ó Á¶ÀÛÀÇ ¸®½Ã¹ö°¡ ÃÖÁ¾ »ç¿ëÀÚ¿¡ ÀûÀýÇÑ µå·¡±×
¾ð´õ Çǵå¹éÀ» Á¦°øÇϰųª Çʿ信 µû¶ó¼ ÈļÓÀÇ µ¥ÀÌÅÍ Àü¼ÛÀ» ½ÇÇàÇϰųª ÇÏ´Â µµ±¸¸¦ Á¦°øÇÕ´Ï´Ù.
Áßø(Nested) Ŭ·¡½º °³¿ä | |
---|---|
protected class |
DropTargetContext.TransferableProxy
TransferableProxy ´Â Transferable ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏ´Â ÇïÆÛ ³»ºÎ Ŭ·¡½º¿¡¼
ƯÁ¤ÀÇ µå·¡±×£¦µå·Ó Á¶ÀÛÀÇ µ¥ÀÌÅÍ Àü¼ÛÀ» ³ªÅ¸³»´Â ´Ù¸¥ Transferable °´Ã¼¿¡ ´ëÇÑ ÇÁ·Ï½Ã·Î¼ µ¿ÀÛÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
protected void |
acceptDrag (int dragOperation)
µå·¡±×¸¦ ¹Þ¾ÆµéÀÔ´Ï´Ù. |
protected void |
acceptDrop (int dropOperation)
ÁöÁ¤µÈ Á¶ÀÛÀ» »ç¿ëÇØ µå·ÓÀÌ ¹Þ¾Æµé¿©Áö´Â °ÍÀ» ¾Ë¸®±â À§Çؼ È£ÃâÇÕ´Ï´Ù. |
void |
addNotify (java.awt.dnd.peer.DropTargetContextPeer dtcp)
DropTargetContextPeer ¿¡ °ü·ÃÇßÀ» ¶§¿¡ È£ÃâÇÕ´Ï´Ù. |
protected Transferable |
createTransferableProxy (Transferable t,
boolean local)
ÁöÁ¤µÈ Transferable ÇÁ·Ï½Ã·Î¼ TransferableProxy¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
void |
dropComplete (boolean success)
ÀÌ ¸Þ¼µå´Â µå·ÓÀÌ ¿Ï·áÇÑ °Í ¹× ±×°ÍÀÌ ¼º°øÇß´ÂÁö ¾î¶°Çß´ÂÁö¸¦ ¾Ë¸³´Ï´Ù. |
Component |
getComponent ()
ÀÌ ¸Þ¼µå´Â ÀÌ DropTargetContext ¿¡ °ü·ÃÇÑ Component ¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
protected DataFlavor [] |
getCurrentDataFlavors ()
ÀÌ Á¶ÀÛÀÇ Transferable ¿ÀÆÛ·£µåÀÇ À¯È¿ÇÑ DataFlavorÀ» ÃëµæÇÕ´Ï´Ù. |
protected List <DataFlavor > |
getCurrentDataFlavorsAsList ()
ÀÌ ¸Þ¼µå´Â Transferable ¿ÀÆÛ·£µåÀÇ ÇöÀç À¯È¿ÇÑ DataFlavor¸¦ java.util.List ·Î
¼ ¸®ÅÏÇÕ´Ï´Ù. |
DropTarget |
getDropTarget ()
ÀÌ ¸Þ¼µå´Â ÀÌ DropTargetContext ¿¡ °ü·ÃÇÑ DropTarget À»
¸®ÅÏÇÕ´Ï´Ù. |
protected int |
getTargetActions ()
ÀÌ ¸Þ¼µå´Â ÀÌ DropTarget ÀÌ
¹Þ¾ÆµéÀÌ´Â ÇöÀçÀÇ ¾×¼ÇÀ» ³ªÅ¸³»´Â int ¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
protected Transferable |
getTransferable ()
ÀÌ Á¶ÀÛÀÇ Transferable (ÇÁ·Ï½Ã) ¿ÀÆÛ·£µå¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
protected boolean |
isDataFlavorSupported (DataFlavor df)
ÀÌ ¸Þ¼µå´Â ÁöÁ¤ÇÑ DataFlavor °¡ ÀÌ DropTargetContext ¿¡ ÀÇÇØ Áö¿øµÉÁö ¾î¶³Áö¸¦ ³ªÅ¸³»´Â boolean À»
¸®ÅÏÇÕ´Ï´Ù. |
protected void |
rejectDrag ()
µå·¡±×¸¦ °ÅºÎÇÕ´Ï´Ù. |
protected void |
rejectDrop ()
µå·ÓÀÌ ¹Þ¾Æµé¿©ÁöÁö ¾Ê´Â °ÍÀ» ¾Ë¸®±â À§Çؼ È£ÃâÇÕ´Ï´Ù. |
void |
removeNotify ()
DropTargetContextPeer °úÀÇ °ü·ÃÀÌ Ç®¸± ¶§ È£ÃâÇÕ´Ï´Ù. |
protected void |
setTargetActions (int actions)
ÀÌ ¸Þ¼µå´Â ÀÌ DropTarget ·Î
Çã¿ë µÇ´Â ÇöÀçÀÇ ¾×¼ÇÀ» ¼³Á¤ÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
¸Þ¼µåÀÇ »ó¼¼ |
---|
public DropTarget getDropTarget()
DropTargetContext
¿¡ °ü·ÃÇÑ DropTarget
À»
¸®ÅÏÇÕ´Ï´Ù.
DropTargetContext
¿¡ °ü·ÃÇÑ DropTarget
public Component getComponent()
DropTargetContext
¿¡ °ü·ÃÇÑ Component
¸¦ ¸®ÅÏÇÕ´Ï´Ù.
public void addNotify(java.awt.dnd.peer.DropTargetContextPeer dtcp)
DropTargetContextPeer
¿¡ °ü·ÃÇßÀ» ¶§¿¡ È£ÃâÇÕ´Ï´Ù.
dtcp
- DropTargetContextPeer
public void removeNotify()
DropTargetContextPeer
°úÀÇ °ü·ÃÀÌ Ç®¸± ¶§ È£ÃâÇÕ´Ï´Ù.
protected void setTargetActions(int actions)
DropTarget
·Î
Çã¿ë µÇ´Â ÇöÀçÀÇ ¾×¼ÇÀ» ¼³Á¤ÇÕ´Ï´Ù.
actions
- Áö¿øµÇ´Â ¾×¼ÇÀ» ³ªÅ¸³»´Â int
protected int getTargetActions()
DropTarget
ÀÌ
¹Þ¾ÆµéÀÌ´Â ÇöÀçÀÇ ¾×¼ÇÀ» ³ªÅ¸³»´Â int
¸¦ ¸®ÅÏÇÕ´Ï´Ù.
DropTarget
·Î
Çã¿ë µÇ´Â ÇöÀçÀÇ ¾×¼Çpublic void dropComplete(boolean success) throws InvalidDnDOperationException
success
- ¼º°øÇßÀ» °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
InvalidDnDOperationException
- µå·ÓÀÌ ¹Ì󸮰¡ ¾Æ´ÑÁö, ÇöÁ¸ Çϰí ÀÖÁö ¾Ê´Â °æ¿ìprotected void acceptDrag(int dragOperation)
dragOperation
- Áö¿øµÇ´Â ¾×¼Çprotected void rejectDrag()
protected void acceptDrop(int dropOperation)
dropOperation
- Áö¿øµÇ´Â ¾×¼Çprotected void rejectDrop()
protected DataFlavor [] getCurrentDataFlavors()
Transferable
¿ÀÆÛ·£µåÀÇ À¯È¿ÇÑ DataFlavor¸¦ ÃëµæÇÕ´Ï´Ù.
Transferable
¿ÀÆÛ·£µåÀÇ, Áö¿øµÇ´Â DataFlavor
¸¦ Æ÷ÇÔÇÏ´Â DataFlavor[]
protected List <DataFlavor > getCurrentDataFlavorsAsList()
Transferable
¿ÀÆÛ·£µåÀÇ ÇöÀç À¯È¿ÇÑ DataFlavor¸¦ java.util.List
·Î
¼ ¸®ÅÏÇÕ´Ï´Ù.
java.util.List
·Î
¼ ÇöÀç À¯È¿ÇÑ DataFlavorprotected boolean isDataFlavorSupported(DataFlavor df)
DataFlavor
°¡ ÀÌ DropTargetContext
¿¡ ÀÇÇØ Áö¿øµÉÁö ¾î¶³Áö¸¦ ³ªÅ¸³»´Â boolean
À»
¸®ÅÏÇÕ´Ï´Ù.
df
- DataFlavor
DataFlavor
°¡ Áö¿øµÇ°í ÀÖ´ÂÁö ¾î¶²Áöprotected Transferable getTransferable() throws InvalidDnDOperationException
Transferable
InvalidDnDOperationException
- µå·¡±×°¡ ¹Ì󸮰¡ ¾Æ´ÑÁö, ÇöÁ¸ Çϰí ÀÖÁö ¾Ê´Â °æ¿ì protected Transferable createTransferableProxy(Transferable t, boolean local)
t
- ÇÁ·Ï½ÃÀÇ ´ë»óÀÇ Transferablelocal
- t°¡ ·ÎÄÃÀÇ µå·¡±×£¦µå·Ó Á¶ÀÛÀÇ °á°ú¸¦ ³ªÅ¸³»´Â °æ¿ì´Â true
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: »óÀÚ | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.