| java.lang.Object org.netbeans.modules.visualweb.designer.DndHandler
DndHandler | public class DndHandler (Code) | | The transfer handler for the designer pane
author: Tor Norbye author: Carl Quinn |
DROP_DENIED | final public static int DROP_DENIED(Code) | | State indicating that a drop is not allowed
|
DROP_LINKED | final public static int DROP_LINKED(Code) | | State indicating that the drop is allowed and the bean will be
parented by one of the beans under the cursor
|
DROP_PARENTED | final public static int DROP_PARENTED(Code) | | State indicating that the drop is allowed and will cause a link
|
clearDropMatch | public void clearDropMatch()(Code) | | |
getDropPoint | public Point getDropPoint()(Code) | | Get the most recent drop point that we've been notified about
|
getDropSize | public Dimension getDropSize()(Code) | | Get the most recent drop size that we've been notified about
|
getDropType | public int getDropType(Point p, Transferable t, boolean linkOnly)(Code) | | Compute the list of class names for beans identified by the given palette item transferable
|
getDropTypeForComponent | public int getDropTypeForComponent(Point p, Element componentRootElement, boolean linkOnly)(Code) | | |
getRecentDropTargetComponentRootElement | Element getRecentDropTargetComponentRootElement()(Code) | | Return the target parent or link-handler computed for the most recent
getDropType call. Be careful. This must be called after getDropType()
and the result will be clobbered as soon as additional getDropType
requests come in (which they often do from the mouse motion listener!)
|
importData | public boolean importData(JComponent comp, Transferable t)(Code) | | This method causes a transfer to a component from a clipboard or a DND drop operation. The
Transferable represents the data to be imported into the component.
Parameters: comp - The component to receive the transfer. This argument is provided to enablesharing of TransferHandlers by multiple components. Parameters: t - The data to import true if the data was inserted into the component, false otherwise. |
setDropAction | public void setDropAction(int dropAction)(Code) | | Set the drop action in effect so the importData method knows
how to react.
|
setDropPoint | public void setDropPoint(Point p)(Code) | | Set the most recent drop point that we've been notified about
|
setDropSize | public void setDropSize(Dimension d)(Code) | | Set the most recent drop point that we've been notified about
|
setInsertPosition | public void setInsertPosition(DomPosition insertPos)(Code) | | Set the element to insert this tag immediately preeceding
in the DOM
|
showDropMatch | public void showDropMatch(Element componentRootElement, Element regionElement, int type)(Code) | | We have a potential drop match on the given bean - show it as selected.
|
|
|