Class JWebAddress.WebAddressDropTarget

  extended by java.awt.dnd.DropTarget
      extended by net.lucidviews.util.gui.swing.dnd.DefaultDropTarget
          extended by net.lucidviews.util.gui.swing.dnd.DefaultSwingDropTarget
              extended by net.lucidviews.util.gui.swing.JWebAddress.WebAddressDropTarget
All Implemented Interfaces:
DropTargetListener, Serializable, EventListener
Enclosing class:

public static class JWebAddress.WebAddressDropTarget
extends DefaultSwingDropTarget

A DropTarget that accepts addresses dropped onto the input field.
When an address is dropped onto the input field it will replace any text currently in the address box with the new text and highlight the field ready for the user to press return and go to the new address.

See Also:
Serialized Form

Nested Class Summary
Nested classes/interfaces inherited from class java.awt.dnd.DropTarget
Field Summary
private static long serialVersionUID
          Serialisation version.
protected  JWebAddress webAddressComponent
          The component that will receive the URL being dropped.
Fields inherited from class net.lucidviews.util.gui.swing.dnd.DefaultSwingDropTarget
Fields inherited from class net.lucidviews.util.gui.swing.dnd.DefaultDropTarget
canImport, supportedActions
Constructor Summary
JWebAddress.WebAddressDropTarget(JWebAddress webAddressComponent)
          Create a drop target for a web address component.
Method Summary
 void drop(DropTargetDropEvent event)
Methods inherited from class net.lucidviews.util.gui.swing.dnd.DefaultSwingDropTarget
Methods inherited from class net.lucidviews.util.gui.swing.dnd.DefaultDropTarget
dragEnter, dragExit, dragOver, dropActionChanged
Methods inherited from class java.awt.dnd.DropTarget
addDropTargetListener, addNotify, clearAutoscroll, createDropTargetAutoScroller, createDropTargetContext, getComponent, getDefaultActions, getDropTargetContext, getFlavorMap, initializeAutoscrolling, isActive, removeDropTargetListener, removeNotify, setActive, setComponent, setDefaultActions, setFlavorMap, updateAutoscroll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


private static final long serialVersionUID
Serialisation version.

See Also:
Constant Field Values


protected JWebAddress webAddressComponent
The component that will receive the URL being dropped.

Constructor Detail


public JWebAddress.WebAddressDropTarget(JWebAddress webAddressComponent)
Create a drop target for a web address component.

webAddressComponent - the component that will receive the URLs dropped onto this target
Method Detail


public void drop(DropTargetDropEvent event)

Specified by:
drop in interface DropTargetListener
drop in class DefaultDropTarget