Drag and Drop

From: Dave Hallam <davehallam@yahoo.com>
Date: Wed Aug 14 2002 - 09:08:54 EDT

Hi,

Just pondering through the DnD capabilities and was wondering where I was going wrong or what I was missing.

My layer extends OMGraphicHandlerLayer as indicated in the DefaultDnDCatcher docs.

In my main application class I'm doing the following:

....

  mapBean.setProjection(proj);
  mapBean.setPreferredSize(new java.awt.Dimension(envWidth, envHeight));
  
  supp = new DropListenerSupport(mapBean);
 
  beanHandler = getMapHandler();
  
  try
  {
   beanHandler.add(propertyHandler);
   beanHandler.add(mapBean);
   beanHandler.add(supp);
   propertyHandler.createComponents(beanHandler);
  }

...

What is it that I have to do to get this to work. What I want to do is to be able to drag files, java objects, etc onto the map and for the layers to decide what they want to do about it.

Many thanks,

Dave

 

Tel: +44 (0) 7092 250 375
Fax: +44 (0) 7092 250 375

---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.

http://uk.docs.yahoo.com/mail_storage.html

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Aug 14 09:10:13 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT