org.netbeans.api.visual 2.28.1

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.28.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.