| org.netbeans.core.windows.view.dnd.TopComponentDroppable
TopComponentDroppable | public interface TopComponentDroppable (Code) | | Interface which allows container to provide support for dynamic
drop target indication, thus handling possible
drop operations for all its sub components and actually
provides the drop operation to the container.
author: Peter Zavadsky See Also: DropTargetGlassPane |
Method Summary | |
public boolean | canDrop(TopComponent transfer, Point location) Checks whether the specified TopComponent can be dropped. | public Object | getConstraintForLocation(Point location) Gets constraint to be used for specified location
of possible drop operation. | public Component | getDropComponent() Gets actual drop component, i.e. | public ViewElement | getDropViewElement() Gets view element into which to perform the drop operation. | public Shape | getIndicationForLocation(Point location) Gets Shape object needed to used as indicator
of possible drop operation. | public boolean | supportsKind(int kind, TopComponent transfer) Checks whether this droppable supports kind of winsys transfer.
Either Constants.MODE_KIND_EDITOR or Constants.MODE_KIND_VIEW or both. |
canDrop | public boolean canDrop(TopComponent transfer, Point location)(Code) | | Checks whether the specified TopComponent can be dropped.
|
getConstraintForLocation | public Object getConstraintForLocation(Point location)(Code) | | Gets constraint to be used for specified location
of possible drop operation.
Parameters: location - within the container's glass pane coordinates can return null if default constraints shouldshould be used |
getDropComponent | public Component getDropComponent()(Code) | | Gets actual drop component, i.e. the one which absobs the possible dropped
top component. Used to detect its bounds, for drop indication.
|
getDropViewElement | public ViewElement getDropViewElement()(Code) | | Gets view element into which to perform the drop operation.
|
getIndicationForLocation | public Shape getIndicationForLocation(Point location)(Code) | | Gets Shape object needed to used as indicator
of possible drop operation.
Parameters: location - within the container's glass pane coordinates |
supportsKind | public boolean supportsKind(int kind, TopComponent transfer)(Code) | | Checks whether this droppable supports kind of winsys transfer.
Either Constants.MODE_KIND_EDITOR or Constants.MODE_KIND_VIEW or both.
|
|
|