de.fhg.igd.ui
Class DnDTest

java.lang.Object
  extended byde.fhg.igd.ui.DnDTest
All Implemented Interfaces:
DropDelegate

public class DnDTest
extends Object
implements DropDelegate

Shows a simple dialog that accepts dropped HostEntry instances, and which is beautified with a fancy image.

Version:
"$Id: DnDTest.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Volker Roth

Field Summary
protected  JFrame frame_
          The JFrame used to show warnings.
private  Image image_
          The url image.
static String INAME
          The URL image name.
static int IWIDTH
          The width of the image as it is used.
private static Object lock_
          The private static lock.
 
Constructor Summary
DnDTest()
           
 
Method Summary
 void drop(Object o)
          Digests dropped data.
protected  void init()
          Initializes the frame if it isn't already.
static void main(String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INAME

public static final String INAME
The URL image name.

See Also:
Constant Field Values

IWIDTH

public static final int IWIDTH
The width of the image as it is used.

See Also:
Constant Field Values

lock_

private static Object lock_
The private static lock.


image_

private Image image_
The url image.


frame_

protected transient JFrame frame_
The JFrame used to show warnings.

Constructor Detail

DnDTest

public DnDTest()
Method Detail

init

protected void init()
             throws IOException,
                    ImageException,
                    InterruptedException
Initializes the frame if it isn't already.

Throws:
IOException
ImageException
InterruptedException

drop

public void drop(Object o)
Description copied from interface: DropDelegate
Digests dropped data. The data consists of type ObjectSelection.

Specified by:
drop in interface DropDelegate
Parameters:
o - The dropped data.

main

public static void main(String[] argv)


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.