net.lucidviews.util.gui.swing
Class JWebAddress.WebAddressDropTarget
java.lang.Object
java.awt.dnd.DropTarget
net.lucidviews.util.gui.swing.dnd.DefaultDropTarget
net.lucidviews.util.gui.swing.dnd.DefaultSwingDropTarget
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
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 |
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.
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
drop
public void drop(DropTargetDropEvent event)
-
- Specified by:
drop
in interface DropTargetListener
- Overrides:
drop
in class DefaultDropTarget