Remote Systems
v6.4.1

com.ibm.etools.systems.files.importexport.files
Class TreeScrollDropListener

java.lang.Object
  extended byDropTargetAdapter
      extended bycom.ibm.etools.systems.files.importexport.files.TreeScrollDropListener

public class TreeScrollDropListener
extends DropTargetAdapter

TreeScrollDropListener provides automatic scrolling for Trees during drag and drop operations.

If the pointer drags over an item in the Tree near its upper or lower edges, the Tree will scroll so as to make previous or successive items visible onscreen. This behaviour is consistent with that of popular GUI systems.

To use it send addDropListener(new TreeScrollDropListener(tree)) to the DropTarget object attached to the Tree.

See Also:
Serialized Form

Field Summary
static String Copyright
           
 
Constructor Summary
TreeScrollDropListener(Tree tree)
          Constructs a Tree scrolling Drop Listener
 
Method Summary
 void dragOver(DropTargetEvent event)
          Handles dragOver events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

TreeScrollDropListener

public TreeScrollDropListener(Tree tree)
Constructs a Tree scrolling Drop Listener

Parameters:
tree - the Tree that the DropTarget is attached to
Method Detail

dragOver

public void dragOver(DropTargetEvent event)
Handles dragOver events. This is an implementation detail.


Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.