net.lucidviews.util.gui.swing
Class JWebAddress.WebAddressDropTarget

java.lang.Object
  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:
JWebAddress

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
DropTarget.DropTargetAutoScroller
 
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
target
 
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
dataFlavourSupported
 
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

serialVersionUID

private static final long serialVersionUID
Serialisation version.

See Also:
Constant Field Values

webAddressComponent

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

Constructor Detail

JWebAddress.WebAddressDropTarget

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

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

drop

public void drop(DropTargetDropEvent event)

Specified by:
drop in interface DropTargetListener
Overrides:
drop in class DefaultDropTarget