@API(type=EXTENDABLE,
src=PUBLIC)
public abstract class DITAMapTreeDropHandler
extends java.lang.Object
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
Constructor and Description |
---|
DITAMapTreeDropHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptDragOverURLs(java.util.List resourcesToRefer,
AuthorNode contextNode,
boolean asChild)
We have a drag over situation with a bunch of resources which have all been previously converted to URLs.
|
boolean |
consumeDropURLs(java.util.List resourcesToRefer,
AuthorNode destination,
boolean asChild)
Process drop URLs.
|
public boolean acceptDragOverURLs(java.util.List resourcesToRefer, AuthorNode contextNode, boolean asChild)
resourcesToRefer
- The resources which will be linked in the map, usually URL
or File
objects.contextNode
- Node over which the mouse is moved.asChild
- true
if when dropped the list of URLs will be added as children, false
if they will be added
as siblings (after) the context node. This depends on the position of the mouse relative to the context node bounds.true
if the handler accepts drag over and the default drag over handling should be done, false
if it rejects it.public boolean consumeDropURLs(java.util.List resourcesToRefer, AuthorNode destination, boolean asChild)
resourcesToRefer
- The resources which will be dropped, usually URL
or File
objects.destination
- The node over which the drop was done.asChild
- true
if when dropped the list of URLs will be added as children, false
if they will be added
as siblings (after) the destination node. This depends on the position of the mouse relative to the destination node bounds.true
if the handler will make its own processing to insert the references, false
if the default processing should be done.© Copyright SyncRO Soft SRL 2002 - 2015. All rights reserved.