站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

TransferListener (NetBeans APIs) - NetBeans API Javadoc 4.1.0


org.openide.util.datatransfer
Interface TransferListener

All Superinterfaces:
EventListener

public interface TransferListener
extends EventListener

Allows listening to progress of manipulation with ExTransferable. So it is notified when the transferable is accepted/rejected by an operation or if it is released from a clipboard.


Method Summary
 void accepted(int action)
          Accepted by a drop operation.
 void ownershipLost()
          Released from a clipboard.
 void rejected()
          The transfer has been rejected.
 

Method Detail

accepted

public void accepted(int action)
Accepted by a drop operation.

Parameters:
action - One of java.awt.dnd.DndConstants like ACTION_COPY, ACTION_MOVE, ACTION_LINK.

rejected

public void rejected()
The transfer has been rejected.


ownershipLost

public void ownershipLost()
Released from a clipboard.



Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.