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

AcceptProvider (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

org.netbeans.api.visual.action
Interface AcceptProvider


public interface AcceptProvider

This interface controls an accept (drag & drop) action.


Method Summary
 void accept(Widget widget, Point point, Transferable transferable)
          Handles the drop of a transferable.
 ConnectorState isAcceptable(Widget widget, Point point, Transferable transferable)
          Checks whether a transferable can be dropped on a widget at a specific point.
 

Method Detail

isAcceptable

ConnectorState isAcceptable(Widget widget,
                            Point point,
                            Transferable transferable)
Checks whether a transferable can be dropped on a widget at a specific point.

Parameters:
widget - the widget could be dropped
point - the drop location in local coordination system of the widget
transferable - the transferable
Returns:
the state

accept

void accept(Widget widget,
            Point point,
            Transferable transferable)
Handles the drop of a transferable.

Parameters:
widget - the widget where the transferable is dropped
point - the drop location in local coordination system of the widget
transferable - the transferable

org.netbeans.api.visual 2.2

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